-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-managedblockchain-query): Introduces a new API for Amazon…
… Managed Blockchain Query: ListFilteredTransactionEvents.
- Loading branch information
awstools
committed
Mar 19, 2024
1 parent
38c6f75
commit 487e1dd
Showing
12 changed files
with
978 additions
and
158 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
160 changes: 160 additions & 0 deletions
160
clients/client-managedblockchain-query/src/commands/ListFilteredTransactionEventsCommand.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,160 @@ | ||
// 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 { | ||
ManagedBlockchainQueryClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../ManagedBlockchainQueryClient"; | ||
import { ListFilteredTransactionEventsInput, ListFilteredTransactionEventsOutput } from "../models/models_0"; | ||
import { | ||
de_ListFilteredTransactionEventsCommand, | ||
se_ListFilteredTransactionEventsCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListFilteredTransactionEventsCommand}. | ||
*/ | ||
export interface ListFilteredTransactionEventsCommandInput extends ListFilteredTransactionEventsInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListFilteredTransactionEventsCommand}. | ||
*/ | ||
export interface ListFilteredTransactionEventsCommandOutput | ||
extends ListFilteredTransactionEventsOutput, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* <p>Lists all the transaction events for an address on the blockchain.</p> | ||
* <note> | ||
* <p>This operation is only supported on the Bitcoin networks.</p> | ||
* </note> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand } from "@aws-sdk/client-managedblockchain-query"; // ES Modules import | ||
* // const { ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import | ||
* const client = new ManagedBlockchainQueryClient(config); | ||
* const input = { // ListFilteredTransactionEventsInput | ||
* network: "STRING_VALUE", // required | ||
* addressIdentifierFilter: { // AddressIdentifierFilter | ||
* transactionEventToAddress: [ // ChainAddresses // required | ||
* "STRING_VALUE", | ||
* ], | ||
* }, | ||
* timeFilter: { // TimeFilter | ||
* from: { // BlockchainInstant | ||
* time: new Date("TIMESTAMP"), | ||
* }, | ||
* to: { | ||
* time: new Date("TIMESTAMP"), | ||
* }, | ||
* }, | ||
* voutFilter: { // VoutFilter | ||
* voutSpent: true || false, // required | ||
* }, | ||
* confirmationStatusFilter: { // ConfirmationStatusFilter | ||
* include: [ // ConfirmationStatusIncludeList // required | ||
* "STRING_VALUE", | ||
* ], | ||
* }, | ||
* sort: { // ListFilteredTransactionEventsSort | ||
* sortBy: "STRING_VALUE", | ||
* sortOrder: "STRING_VALUE", | ||
* }, | ||
* nextToken: "STRING_VALUE", | ||
* maxResults: Number("int"), | ||
* }; | ||
* const command = new ListFilteredTransactionEventsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListFilteredTransactionEventsOutput | ||
* // events: [ // TransactionEventList // required | ||
* // { // TransactionEvent | ||
* // network: "STRING_VALUE", // required | ||
* // transactionHash: "STRING_VALUE", // required | ||
* // eventType: "STRING_VALUE", // required | ||
* // from: "STRING_VALUE", | ||
* // to: "STRING_VALUE", | ||
* // value: "STRING_VALUE", | ||
* // contractAddress: "STRING_VALUE", | ||
* // tokenId: "STRING_VALUE", | ||
* // transactionId: "STRING_VALUE", | ||
* // voutIndex: Number("int"), | ||
* // voutSpent: true || false, | ||
* // spentVoutTransactionId: "STRING_VALUE", | ||
* // spentVoutTransactionHash: "STRING_VALUE", | ||
* // spentVoutIndex: Number("int"), | ||
* // blockchainInstant: { // BlockchainInstant | ||
* // time: new Date("TIMESTAMP"), | ||
* // }, | ||
* // confirmationStatus: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // nextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListFilteredTransactionEventsCommandInput - {@link ListFilteredTransactionEventsCommandInput} | ||
* @returns {@link ListFilteredTransactionEventsCommandOutput} | ||
* @see {@link ListFilteredTransactionEventsCommandInput} for command's `input` shape. | ||
* @see {@link ListFilteredTransactionEventsCommandOutput} for command's `response` shape. | ||
* @see {@link ManagedBlockchainQueryClientResolvedConfig | config} for ManagedBlockchainQueryClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>The Amazon Web Services account doesn’t have access to this resource. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>The request processing has failed because of an internal error in the service.</p> | ||
* | ||
* @throws {@link ServiceQuotaExceededException} (client fault) | ||
* <p>The service quota has been exceeded for this resource.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The request or operation couldn't be performed because a service is throttling | ||
* requests. The most common source of throttling errors is when you create resources | ||
* that exceed your service limit for this resource type. Request a limit increase or | ||
* delete unused resources, if possible.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The resource passed is invalid.</p> | ||
* | ||
* @throws {@link ManagedBlockchainQueryServiceException} | ||
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListFilteredTransactionEventsCommand extends $Command | ||
.classBuilder< | ||
ListFilteredTransactionEventsCommandInput, | ||
ListFilteredTransactionEventsCommandOutput, | ||
ManagedBlockchainQueryClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: ManagedBlockchainQueryClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("TietonChainQueryService", "ListFilteredTransactionEvents", {}) | ||
.n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ListFilteredTransactionEventsCommand) | ||
.de(de_ListFilteredTransactionEventsCommand) | ||
.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
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.