|
| 1 | +// smithy-typescript generated code |
| 2 | +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; |
| 3 | +import { getSerdePlugin } from "@smithy/middleware-serde"; |
| 4 | +import { Command as $Command } from "@smithy/smithy-client"; |
| 5 | +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; |
| 6 | + |
| 7 | +import { |
| 8 | + BedrockAgentRuntimeClientResolvedConfig, |
| 9 | + ServiceInputTypes, |
| 10 | + ServiceOutputTypes, |
| 11 | +} from "../BedrockAgentRuntimeClient"; |
| 12 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 13 | +import { DeleteAgentMemoryRequest, DeleteAgentMemoryResponse } from "../models/models_0"; |
| 14 | +import { de_DeleteAgentMemoryCommand, se_DeleteAgentMemoryCommand } from "../protocols/Aws_restJson1"; |
| 15 | + |
| 16 | +/** |
| 17 | + * @public |
| 18 | + */ |
| 19 | +export type { __MetadataBearer }; |
| 20 | +export { $Command }; |
| 21 | +/** |
| 22 | + * @public |
| 23 | + * |
| 24 | + * The input for {@link DeleteAgentMemoryCommand}. |
| 25 | + */ |
| 26 | +export interface DeleteAgentMemoryCommandInput extends DeleteAgentMemoryRequest {} |
| 27 | +/** |
| 28 | + * @public |
| 29 | + * |
| 30 | + * The output of {@link DeleteAgentMemoryCommand}. |
| 31 | + */ |
| 32 | +export interface DeleteAgentMemoryCommandOutput extends DeleteAgentMemoryResponse, __MetadataBearer {} |
| 33 | + |
| 34 | +/** |
| 35 | + * <p>Deletes memory from the specified memory identifier.</p> |
| 36 | + * @example |
| 37 | + * Use a bare-bones client and the command you need to make an API call. |
| 38 | + * ```javascript |
| 39 | + * import { BedrockAgentRuntimeClient, DeleteAgentMemoryCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import |
| 40 | + * // const { BedrockAgentRuntimeClient, DeleteAgentMemoryCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import |
| 41 | + * const client = new BedrockAgentRuntimeClient(config); |
| 42 | + * const input = { // DeleteAgentMemoryRequest |
| 43 | + * agentId: "STRING_VALUE", // required |
| 44 | + * agentAliasId: "STRING_VALUE", // required |
| 45 | + * memoryId: "STRING_VALUE", |
| 46 | + * }; |
| 47 | + * const command = new DeleteAgentMemoryCommand(input); |
| 48 | + * const response = await client.send(command); |
| 49 | + * // {}; |
| 50 | + * |
| 51 | + * ``` |
| 52 | + * |
| 53 | + * @param DeleteAgentMemoryCommandInput - {@link DeleteAgentMemoryCommandInput} |
| 54 | + * @returns {@link DeleteAgentMemoryCommandOutput} |
| 55 | + * @see {@link DeleteAgentMemoryCommandInput} for command's `input` shape. |
| 56 | + * @see {@link DeleteAgentMemoryCommandOutput} for command's `response` shape. |
| 57 | + * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape. |
| 58 | + * |
| 59 | + * @throws {@link AccessDeniedException} (client fault) |
| 60 | + * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p> |
| 61 | + * |
| 62 | + * @throws {@link BadGatewayException} (server fault) |
| 63 | + * <p>There was an issue with a dependency due to a server issue. Retry your request.</p> |
| 64 | + * |
| 65 | + * @throws {@link ConflictException} (client fault) |
| 66 | + * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p> |
| 67 | + * |
| 68 | + * @throws {@link DependencyFailedException} (client fault) |
| 69 | + * <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p> |
| 70 | + * |
| 71 | + * @throws {@link InternalServerException} (server fault) |
| 72 | + * <p>An internal server error occurred. Retry your request.</p> |
| 73 | + * |
| 74 | + * @throws {@link ResourceNotFoundException} (client fault) |
| 75 | + * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p> |
| 76 | + * |
| 77 | + * @throws {@link ServiceQuotaExceededException} (client fault) |
| 78 | + * <p>The number of requests exceeds the service quota. Resubmit your request later.</p> |
| 79 | + * |
| 80 | + * @throws {@link ThrottlingException} (client fault) |
| 81 | + * <p>The number of requests exceeds the limit. Resubmit your request later.</p> |
| 82 | + * |
| 83 | + * @throws {@link ValidationException} (client fault) |
| 84 | + * <p>Input validation failed. Check your request parameters and retry the request.</p> |
| 85 | + * |
| 86 | + * @throws {@link BedrockAgentRuntimeServiceException} |
| 87 | + * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p> |
| 88 | + * |
| 89 | + * @public |
| 90 | + */ |
| 91 | +export class DeleteAgentMemoryCommand extends $Command |
| 92 | + .classBuilder< |
| 93 | + DeleteAgentMemoryCommandInput, |
| 94 | + DeleteAgentMemoryCommandOutput, |
| 95 | + BedrockAgentRuntimeClientResolvedConfig, |
| 96 | + ServiceInputTypes, |
| 97 | + ServiceOutputTypes |
| 98 | + >() |
| 99 | + .ep({ |
| 100 | + ...commonParams, |
| 101 | + }) |
| 102 | + .m(function (this: any, Command: any, cs: any, config: BedrockAgentRuntimeClientResolvedConfig, o: any) { |
| 103 | + return [ |
| 104 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 105 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 106 | + ]; |
| 107 | + }) |
| 108 | + .s("AmazonBedrockAgentRunTimeService", "DeleteAgentMemory", {}) |
| 109 | + .n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand") |
| 110 | + .f(void 0, void 0) |
| 111 | + .ser(se_DeleteAgentMemoryCommand) |
| 112 | + .de(de_DeleteAgentMemoryCommand) |
| 113 | + .build() {} |
0 commit comments