Skip to content

Commit

Permalink
feat(client-qbusiness): This release removes the deprecated UserId an…
Browse files Browse the repository at this point in the history
…d UserGroups fields from SearchRelevantContent api's request parameters.
  • Loading branch information
awstools committed Dec 5, 2024
1 parent d04051f commit bf694a1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface SearchRelevantContentCommandOutput extends SearchRelevantConten
/**
* <p>Searches for relevant content in a Q Business application based on a query. This operation takes a
* search query text, the Q Business application identifier, and optional filters
* (such as user ID, user groups, content source, and maximum results) as input. It returns a list of
* (such as content source and maximum results) as input. It returns a list of
* relevant content items, where each item includes the content text, the unique document identifier,
* the document title, the document URI, any relevant document attributes, and score attributes
* indicating the confidence level of the relevance.</p>
Expand All @@ -43,10 +43,6 @@ export interface SearchRelevantContentCommandOutput extends SearchRelevantConten
* const client = new QBusinessClient(config);
* const input = { // SearchRelevantContentRequest
* applicationId: "STRING_VALUE", // required
* userId: "STRING_VALUE",
* userGroups: [ // UserGroups
* "STRING_VALUE",
* ],
* queryText: "STRING_VALUE", // required
* contentSource: { // ContentSource Union: only one key present
* retriever: { // RetrieverContentSource
Expand Down
12 changes: 0 additions & 12 deletions clients/client-qbusiness/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,18 +487,6 @@ export interface SearchRelevantContentRequest {
*/
applicationId: string | undefined;

/**
* <p>The ID of the user performing the search. Used for access control.</p>
* @public
*/
userId?: string | undefined;

/**
* <p>The groups the user belongs to. Used for access control.</p>
* @public
*/
userGroups?: string[] | undefined;

/**
* <p>The text to search for.</p>
* @public
Expand Down
6 changes: 1 addition & 5 deletions clients/client-qbusiness/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1505,10 +1505,6 @@ export const se_SearchRelevantContentCommand = async (
};
b.bp("/applications/{applicationId}/relevant-content");
b.p("applicationId", () => input.applicationId!, "{applicationId}", false);
const query: any = map({
[_uI]: [, input[_uI]!],
[_uG]: [() => input.userGroups !== void 0, () => input[_uG]! || []],
});
let body: any;
body = JSON.stringify(
take(input, {
Expand All @@ -1519,7 +1515,7 @@ export const se_SearchRelevantContentCommand = async (
queryText: [],
})
);
b.m("POST").h(headers).q(query).b(body);
b.m("POST").h(headers).b(body);
return b.build();
};

Expand Down
16 changes: 1 addition & 15 deletions codegen/sdk-codegen/aws-models/qbusiness.json
Original file line number Diff line number Diff line change
Expand Up @@ -11978,7 +11978,7 @@
}
],
"traits": {
"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>",
"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>",
"smithy.api#http": {
"uri": "/applications/{applicationId}/relevant-content",
"method": "POST"
Expand All @@ -12002,20 +12002,6 @@
"smithy.api#required": {}
}
},
"userId": {
"target": "com.amazonaws.qbusiness#UserId",
"traits": {
"smithy.api#documentation": "<p>The ID of the user performing the search. Used for access control.</p>",
"smithy.api#httpQuery": "userId"
}
},
"userGroups": {
"target": "com.amazonaws.qbusiness#UserGroups",
"traits": {
"smithy.api#documentation": "<p>The groups the user belongs to. Used for access control.</p>",
"smithy.api#httpQuery": "userGroups"
}
},
"queryText": {
"target": "com.amazonaws.qbusiness#QueryText",
"traits": {
Expand Down

0 comments on commit bf694a1

Please sign in to comment.