Skip to content

Commit df1bff4

Browse files
author
awstools
committed
feat(client-managedblockchain-query): AMB Query: update GetTransaction to include transactionId as input
1 parent 0559ead commit df1bff4

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

clients/client-managedblockchain-query/src/commands/GetTransactionCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export interface GetTransactionCommandOutput extends GetTransactionOutput, __Met
4545
* // const { ManagedBlockchainQueryClient, GetTransactionCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
4646
* const client = new ManagedBlockchainQueryClient(config);
4747
* const input = { // GetTransactionInput
48-
* transactionHash: "STRING_VALUE", // required
48+
* transactionHash: "STRING_VALUE",
49+
* transactionId: "STRING_VALUE",
4950
* network: "STRING_VALUE", // required
5051
* };
5152
* const command = new GetTransactionCommand(input);

clients/client-managedblockchain-query/src/commands/ListTransactionsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface ListTransactionsCommandOutput extends ListTransactionsOutput, _
6565
* // transactions: [ // TransactionOutputList // required
6666
* // { // TransactionOutputItem
6767
* // transactionHash: "STRING_VALUE", // required
68+
* // transactionId: "STRING_VALUE",
6869
* // network: "STRING_VALUE", // required
6970
* // transactionTimestamp: new Date("TIMESTAMP"), // required
7071
* // confirmationStatus: "STRING_VALUE",

clients/client-managedblockchain-query/src/models/models_0.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,17 @@ export interface GetTransactionInput {
790790
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
791791
* @public
792792
*/
793-
transactionHash: string | undefined;
793+
transactionHash?: string;
794+
795+
/**
796+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
797+
* <note>
798+
* <p>
799+
* <code>transactionId</code> is only supported on the Bitcoin networks.</p>
800+
* </note>
801+
* @public
802+
*/
803+
transactionId?: string;
794804

795805
/**
796806
* <p>The blockchain network where the transaction occurred.</p>
@@ -1670,6 +1680,12 @@ export interface TransactionOutputItem {
16701680
*/
16711681
transactionHash: string | undefined;
16721682

1683+
/**
1684+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
1685+
* @public
1686+
*/
1687+
transactionId?: string;
1688+
16731689
/**
16741690
* <p>The blockchain network where the transaction occurred.</p>
16751691
* @public

clients/client-managedblockchain-query/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export const se_GetTransactionCommand = async (
159159
take(input, {
160160
network: [],
161161
transactionHash: [],
162+
transactionId: [],
162163
})
163164
);
164165
b.m("POST").h(headers).b(body);
@@ -903,6 +904,7 @@ const de_TransactionOutputItem = (output: any, context: __SerdeContext): Transac
903904
confirmationStatus: __expectString,
904905
network: __expectString,
905906
transactionHash: __expectString,
907+
transactionId: __expectString,
906908
transactionTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
907909
}) as any;
908910
};

codegen/sdk-codegen/aws-models/managedblockchain-query.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,13 @@
694694
"transactionHash": {
695695
"target": "com.amazonaws.managedblockchainquery#QueryTransactionHash",
696696
"traits": {
697-
"smithy.api#documentation": "<p>The hash of a transaction. It is generated when a transaction is created.</p>",
698-
"smithy.api#required": {}
697+
"smithy.api#documentation": "<p>The hash of a transaction. It is generated when a transaction is created.</p>"
698+
}
699+
},
700+
"transactionId": {
701+
"target": "com.amazonaws.managedblockchainquery#QueryTransactionId",
702+
"traits": {
703+
"smithy.api#documentation": "<p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>\n <note>\n <p>\n <code>transactionId</code> is only supported on the Bitcoin networks.</p>\n </note>"
699704
}
700705
},
701706
"network": {
@@ -2782,6 +2787,12 @@
27822787
"smithy.api#required": {}
27832788
}
27842789
},
2790+
"transactionId": {
2791+
"target": "com.amazonaws.managedblockchainquery#QueryTransactionId",
2792+
"traits": {
2793+
"smithy.api#documentation": "<p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>"
2794+
}
2795+
},
27852796
"network": {
27862797
"target": "com.amazonaws.managedblockchainquery#QueryNetwork",
27872798
"traits": {

0 commit comments

Comments
 (0)