-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-qapps): Adds UpdateLibraryItemMetadata api to change stat…
…us of app for admin verification feature and returns isVerified field in any api returning the app or library item.
- Loading branch information
awstools
committed
Sep 6, 2024
1 parent
6ce1172
commit 058537c
Showing
16 changed files
with
486 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
clients/client-qapps/src/commands/UpdateLibraryItemMetadataCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { UpdateLibraryItemMetadataInput } from "../models/models_0"; | ||
import { de_UpdateLibraryItemMetadataCommand, se_UpdateLibraryItemMetadataCommand } from "../protocols/Aws_restJson1"; | ||
import { QAppsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QAppsClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link UpdateLibraryItemMetadataCommand}. | ||
*/ | ||
export interface UpdateLibraryItemMetadataCommandInput extends UpdateLibraryItemMetadataInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link UpdateLibraryItemMetadataCommand}. | ||
*/ | ||
export interface UpdateLibraryItemMetadataCommandOutput extends __MetadataBearer {} | ||
|
||
/** | ||
* <p>Updates the verification status of a library item for an Amazon Q App.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { QAppsClient, UpdateLibraryItemMetadataCommand } from "@aws-sdk/client-qapps"; // ES Modules import | ||
* // const { QAppsClient, UpdateLibraryItemMetadataCommand } = require("@aws-sdk/client-qapps"); // CommonJS import | ||
* const client = new QAppsClient(config); | ||
* const input = { // UpdateLibraryItemMetadataInput | ||
* instanceId: "STRING_VALUE", // required | ||
* libraryItemId: "STRING_VALUE", // required | ||
* isVerified: true || false, | ||
* }; | ||
* const command = new UpdateLibraryItemMetadataCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param UpdateLibraryItemMetadataCommandInput - {@link UpdateLibraryItemMetadataCommandInput} | ||
* @returns {@link UpdateLibraryItemMetadataCommandOutput} | ||
* @see {@link UpdateLibraryItemMetadataCommandInput} for command's `input` shape. | ||
* @see {@link UpdateLibraryItemMetadataCommandOutput} for command's `response` shape. | ||
* @see {@link QAppsClientResolvedConfig | config} for QAppsClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>The client is not authorized to perform the requested operation.</p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>The requested operation could not be completed due to a | ||
* conflict with the current state of the resource.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>An internal service error occurred while processing the request.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The requested resource could not be found.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The requested operation could not be completed because too many | ||
* requests were sent at once. Wait a bit and try again later.</p> | ||
* | ||
* @throws {@link UnauthorizedException} (client fault) | ||
* <p>The client is not authenticated or authorized to perform the requested operation.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The input failed to satisfy the constraints specified by the service.</p> | ||
* | ||
* @throws {@link QAppsServiceException} | ||
* <p>Base exception class for all service exceptions from QApps service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class UpdateLibraryItemMetadataCommand extends $Command | ||
.classBuilder< | ||
UpdateLibraryItemMetadataCommandInput, | ||
UpdateLibraryItemMetadataCommandOutput, | ||
QAppsClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: QAppsClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("QAppsService", "UpdateLibraryItemMetadata", {}) | ||
.n("QAppsClient", "UpdateLibraryItemMetadataCommand") | ||
.f(void 0, void 0) | ||
.ser(se_UpdateLibraryItemMetadataCommand) | ||
.de(de_UpdateLibraryItemMetadataCommand) | ||
.build() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.