aws-sdk-managedblockchainquery 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-managedblockchainquery/client.rb +834 -0
- data/lib/aws-sdk-managedblockchainquery/client_api.rb +395 -0
- data/lib/aws-sdk-managedblockchainquery/customizations.rb +0 -0
- data/lib/aws-sdk-managedblockchainquery/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-managedblockchainquery/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-managedblockchainquery/endpoints.rb +100 -0
- data/lib/aws-sdk-managedblockchainquery/errors.rb +206 -0
- data/lib/aws-sdk-managedblockchainquery/plugins/endpoints.rb +80 -0
- data/lib/aws-sdk-managedblockchainquery/resource.rb +26 -0
- data/lib/aws-sdk-managedblockchainquery/types.rb +989 -0
- data/lib/aws-sdk-managedblockchainquery/waiters.rb +15 -0
- data/lib/aws-sdk-managedblockchainquery.rb +58 -0
- metadata +95 -0
@@ -0,0 +1,395 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ManagedBlockchainQuery
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
BatchGetTokenBalanceErrorItem = Shapes::StructureShape.new(name: 'BatchGetTokenBalanceErrorItem')
|
18
|
+
BatchGetTokenBalanceErrors = Shapes::ListShape.new(name: 'BatchGetTokenBalanceErrors')
|
19
|
+
BatchGetTokenBalanceInput = Shapes::StructureShape.new(name: 'BatchGetTokenBalanceInput')
|
20
|
+
BatchGetTokenBalanceInputItem = Shapes::StructureShape.new(name: 'BatchGetTokenBalanceInputItem')
|
21
|
+
BatchGetTokenBalanceOutput = Shapes::StructureShape.new(name: 'BatchGetTokenBalanceOutput')
|
22
|
+
BatchGetTokenBalanceOutputItem = Shapes::StructureShape.new(name: 'BatchGetTokenBalanceOutputItem')
|
23
|
+
BatchGetTokenBalanceOutputList = Shapes::ListShape.new(name: 'BatchGetTokenBalanceOutputList')
|
24
|
+
BlockHash = Shapes::StringShape.new(name: 'BlockHash')
|
25
|
+
BlockchainInstant = Shapes::StructureShape.new(name: 'BlockchainInstant')
|
26
|
+
ChainAddress = Shapes::StringShape.new(name: 'ChainAddress')
|
27
|
+
ErrorType = Shapes::StringShape.new(name: 'ErrorType')
|
28
|
+
ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
|
29
|
+
GetTokenBalanceInput = Shapes::StructureShape.new(name: 'GetTokenBalanceInput')
|
30
|
+
GetTokenBalanceInputList = Shapes::ListShape.new(name: 'GetTokenBalanceInputList')
|
31
|
+
GetTokenBalanceOutput = Shapes::StructureShape.new(name: 'GetTokenBalanceOutput')
|
32
|
+
GetTransactionInput = Shapes::StructureShape.new(name: 'GetTransactionInput')
|
33
|
+
GetTransactionOutput = Shapes::StructureShape.new(name: 'GetTransactionOutput')
|
34
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
35
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
36
|
+
ListTokenBalancesInput = Shapes::StructureShape.new(name: 'ListTokenBalancesInput')
|
37
|
+
ListTokenBalancesInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTokenBalancesInputMaxResultsInteger')
|
38
|
+
ListTokenBalancesOutput = Shapes::StructureShape.new(name: 'ListTokenBalancesOutput')
|
39
|
+
ListTransactionEventsInput = Shapes::StructureShape.new(name: 'ListTransactionEventsInput')
|
40
|
+
ListTransactionEventsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTransactionEventsInputMaxResultsInteger')
|
41
|
+
ListTransactionEventsOutput = Shapes::StructureShape.new(name: 'ListTransactionEventsOutput')
|
42
|
+
ListTransactionsInput = Shapes::StructureShape.new(name: 'ListTransactionsInput')
|
43
|
+
ListTransactionsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTransactionsInputMaxResultsInteger')
|
44
|
+
ListTransactionsOutput = Shapes::StructureShape.new(name: 'ListTransactionsOutput')
|
45
|
+
ListTransactionsSort = Shapes::StructureShape.new(name: 'ListTransactionsSort')
|
46
|
+
ListTransactionsSortBy = Shapes::StringShape.new(name: 'ListTransactionsSortBy')
|
47
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
48
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
49
|
+
OwnerFilter = Shapes::StructureShape.new(name: 'OwnerFilter')
|
50
|
+
OwnerIdentifier = Shapes::StructureShape.new(name: 'OwnerIdentifier')
|
51
|
+
QueryNetwork = Shapes::StringShape.new(name: 'QueryNetwork')
|
52
|
+
QueryTokenId = Shapes::StringShape.new(name: 'QueryTokenId')
|
53
|
+
QueryTransactionEventType = Shapes::StringShape.new(name: 'QueryTransactionEventType')
|
54
|
+
QueryTransactionHash = Shapes::StringShape.new(name: 'QueryTransactionHash')
|
55
|
+
QueryTransactionStatus = Shapes::StringShape.new(name: 'QueryTransactionStatus')
|
56
|
+
QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
|
57
|
+
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
58
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
59
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
60
|
+
ServiceCode = Shapes::StringShape.new(name: 'ServiceCode')
|
61
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
62
|
+
SortOrder = Shapes::StringShape.new(name: 'SortOrder')
|
63
|
+
String = Shapes::StringShape.new(name: 'String')
|
64
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
65
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
66
|
+
TokenBalance = Shapes::StructureShape.new(name: 'TokenBalance')
|
67
|
+
TokenBalanceList = Shapes::ListShape.new(name: 'TokenBalanceList')
|
68
|
+
TokenFilter = Shapes::StructureShape.new(name: 'TokenFilter')
|
69
|
+
TokenIdentifier = Shapes::StructureShape.new(name: 'TokenIdentifier')
|
70
|
+
Transaction = Shapes::StructureShape.new(name: 'Transaction')
|
71
|
+
TransactionEvent = Shapes::StructureShape.new(name: 'TransactionEvent')
|
72
|
+
TransactionEventList = Shapes::ListShape.new(name: 'TransactionEventList')
|
73
|
+
TransactionOutputItem = Shapes::StructureShape.new(name: 'TransactionOutputItem')
|
74
|
+
TransactionOutputList = Shapes::ListShape.new(name: 'TransactionOutputList')
|
75
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
76
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
77
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
78
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
79
|
+
|
80
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
81
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
82
|
+
|
83
|
+
BatchGetTokenBalanceErrorItem.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
|
84
|
+
BatchGetTokenBalanceErrorItem.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
|
85
|
+
BatchGetTokenBalanceErrorItem.add_member(:at_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "atBlockchainInstant"))
|
86
|
+
BatchGetTokenBalanceErrorItem.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
|
87
|
+
BatchGetTokenBalanceErrorItem.add_member(:error_message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorMessage"))
|
88
|
+
BatchGetTokenBalanceErrorItem.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, required: true, location_name: "errorType"))
|
89
|
+
BatchGetTokenBalanceErrorItem.struct_class = Types::BatchGetTokenBalanceErrorItem
|
90
|
+
|
91
|
+
BatchGetTokenBalanceErrors.member = Shapes::ShapeRef.new(shape: BatchGetTokenBalanceErrorItem)
|
92
|
+
|
93
|
+
BatchGetTokenBalanceInput.add_member(:get_token_balance_inputs, Shapes::ShapeRef.new(shape: GetTokenBalanceInputList, location_name: "getTokenBalanceInputs"))
|
94
|
+
BatchGetTokenBalanceInput.struct_class = Types::BatchGetTokenBalanceInput
|
95
|
+
|
96
|
+
BatchGetTokenBalanceInputItem.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, required: true, location_name: "tokenIdentifier"))
|
97
|
+
BatchGetTokenBalanceInputItem.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, required: true, location_name: "ownerIdentifier"))
|
98
|
+
BatchGetTokenBalanceInputItem.add_member(:at_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "atBlockchainInstant"))
|
99
|
+
BatchGetTokenBalanceInputItem.struct_class = Types::BatchGetTokenBalanceInputItem
|
100
|
+
|
101
|
+
BatchGetTokenBalanceOutput.add_member(:token_balances, Shapes::ShapeRef.new(shape: BatchGetTokenBalanceOutputList, required: true, location_name: "tokenBalances"))
|
102
|
+
BatchGetTokenBalanceOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetTokenBalanceErrors, required: true, location_name: "errors"))
|
103
|
+
BatchGetTokenBalanceOutput.struct_class = Types::BatchGetTokenBalanceOutput
|
104
|
+
|
105
|
+
BatchGetTokenBalanceOutputItem.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
|
106
|
+
BatchGetTokenBalanceOutputItem.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
|
107
|
+
BatchGetTokenBalanceOutputItem.add_member(:balance, Shapes::ShapeRef.new(shape: String, required: true, location_name: "balance"))
|
108
|
+
BatchGetTokenBalanceOutputItem.add_member(:at_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, required: true, location_name: "atBlockchainInstant"))
|
109
|
+
BatchGetTokenBalanceOutputItem.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "lastUpdatedTime"))
|
110
|
+
BatchGetTokenBalanceOutputItem.struct_class = Types::BatchGetTokenBalanceOutputItem
|
111
|
+
|
112
|
+
BatchGetTokenBalanceOutputList.member = Shapes::ShapeRef.new(shape: BatchGetTokenBalanceOutputItem)
|
113
|
+
|
114
|
+
BlockchainInstant.add_member(:time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "time"))
|
115
|
+
BlockchainInstant.struct_class = Types::BlockchainInstant
|
116
|
+
|
117
|
+
GetTokenBalanceInput.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, required: true, location_name: "tokenIdentifier"))
|
118
|
+
GetTokenBalanceInput.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, required: true, location_name: "ownerIdentifier"))
|
119
|
+
GetTokenBalanceInput.add_member(:at_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "atBlockchainInstant"))
|
120
|
+
GetTokenBalanceInput.struct_class = Types::GetTokenBalanceInput
|
121
|
+
|
122
|
+
GetTokenBalanceInputList.member = Shapes::ShapeRef.new(shape: BatchGetTokenBalanceInputItem)
|
123
|
+
|
124
|
+
GetTokenBalanceOutput.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
|
125
|
+
GetTokenBalanceOutput.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
|
126
|
+
GetTokenBalanceOutput.add_member(:balance, Shapes::ShapeRef.new(shape: String, required: true, location_name: "balance"))
|
127
|
+
GetTokenBalanceOutput.add_member(:at_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, required: true, location_name: "atBlockchainInstant"))
|
128
|
+
GetTokenBalanceOutput.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "lastUpdatedTime"))
|
129
|
+
GetTokenBalanceOutput.struct_class = Types::GetTokenBalanceOutput
|
130
|
+
|
131
|
+
GetTransactionInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
|
132
|
+
GetTransactionInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
133
|
+
GetTransactionInput.struct_class = Types::GetTransactionInput
|
134
|
+
|
135
|
+
GetTransactionOutput.add_member(:transaction, Shapes::ShapeRef.new(shape: Transaction, required: true, location_name: "transaction"))
|
136
|
+
GetTransactionOutput.struct_class = Types::GetTransactionOutput
|
137
|
+
|
138
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
139
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
140
|
+
InternalServerException.struct_class = Types::InternalServerException
|
141
|
+
|
142
|
+
ListTokenBalancesInput.add_member(:owner_filter, Shapes::ShapeRef.new(shape: OwnerFilter, location_name: "ownerFilter"))
|
143
|
+
ListTokenBalancesInput.add_member(:token_filter, Shapes::ShapeRef.new(shape: TokenFilter, required: true, location_name: "tokenFilter"))
|
144
|
+
ListTokenBalancesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
145
|
+
ListTokenBalancesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTokenBalancesInputMaxResultsInteger, location_name: "maxResults"))
|
146
|
+
ListTokenBalancesInput.struct_class = Types::ListTokenBalancesInput
|
147
|
+
|
148
|
+
ListTokenBalancesOutput.add_member(:token_balances, Shapes::ShapeRef.new(shape: TokenBalanceList, required: true, location_name: "tokenBalances"))
|
149
|
+
ListTokenBalancesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
150
|
+
ListTokenBalancesOutput.struct_class = Types::ListTokenBalancesOutput
|
151
|
+
|
152
|
+
ListTransactionEventsInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
|
153
|
+
ListTransactionEventsInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
154
|
+
ListTransactionEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
155
|
+
ListTransactionEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionEventsInputMaxResultsInteger, location_name: "maxResults"))
|
156
|
+
ListTransactionEventsInput.struct_class = Types::ListTransactionEventsInput
|
157
|
+
|
158
|
+
ListTransactionEventsOutput.add_member(:events, Shapes::ShapeRef.new(shape: TransactionEventList, required: true, location_name: "events"))
|
159
|
+
ListTransactionEventsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
160
|
+
ListTransactionEventsOutput.struct_class = Types::ListTransactionEventsOutput
|
161
|
+
|
162
|
+
ListTransactionsInput.add_member(:address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "address"))
|
163
|
+
ListTransactionsInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
164
|
+
ListTransactionsInput.add_member(:from_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "fromBlockchainInstant"))
|
165
|
+
ListTransactionsInput.add_member(:to_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "toBlockchainInstant"))
|
166
|
+
ListTransactionsInput.add_member(:sort, Shapes::ShapeRef.new(shape: ListTransactionsSort, location_name: "sort"))
|
167
|
+
ListTransactionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
168
|
+
ListTransactionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionsInputMaxResultsInteger, location_name: "maxResults"))
|
169
|
+
ListTransactionsInput.struct_class = Types::ListTransactionsInput
|
170
|
+
|
171
|
+
ListTransactionsOutput.add_member(:transactions, Shapes::ShapeRef.new(shape: TransactionOutputList, required: true, location_name: "transactions"))
|
172
|
+
ListTransactionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
173
|
+
ListTransactionsOutput.struct_class = Types::ListTransactionsOutput
|
174
|
+
|
175
|
+
ListTransactionsSort.add_member(:sort_by, Shapes::ShapeRef.new(shape: ListTransactionsSortBy, location_name: "sortBy"))
|
176
|
+
ListTransactionsSort.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sortOrder"))
|
177
|
+
ListTransactionsSort.struct_class = Types::ListTransactionsSort
|
178
|
+
|
179
|
+
OwnerFilter.add_member(:address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "address"))
|
180
|
+
OwnerFilter.struct_class = Types::OwnerFilter
|
181
|
+
|
182
|
+
OwnerIdentifier.add_member(:address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "address"))
|
183
|
+
OwnerIdentifier.struct_class = Types::OwnerIdentifier
|
184
|
+
|
185
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
186
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
187
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
188
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
189
|
+
|
190
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
191
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
192
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
193
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, required: true, location_name: "serviceCode"))
|
194
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: QuotaCode, required: true, location_name: "quotaCode"))
|
195
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
196
|
+
|
197
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
198
|
+
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, required: true, location_name: "serviceCode"))
|
199
|
+
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: QuotaCode, required: true, location_name: "quotaCode"))
|
200
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
201
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
202
|
+
|
203
|
+
TokenBalance.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
|
204
|
+
TokenBalance.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
|
205
|
+
TokenBalance.add_member(:balance, Shapes::ShapeRef.new(shape: String, required: true, location_name: "balance"))
|
206
|
+
TokenBalance.add_member(:at_blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, required: true, location_name: "atBlockchainInstant"))
|
207
|
+
TokenBalance.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "lastUpdatedTime"))
|
208
|
+
TokenBalance.struct_class = Types::TokenBalance
|
209
|
+
|
210
|
+
TokenBalanceList.member = Shapes::ShapeRef.new(shape: TokenBalance)
|
211
|
+
|
212
|
+
TokenFilter.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
213
|
+
TokenFilter.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
|
214
|
+
TokenFilter.add_member(:token_id, Shapes::ShapeRef.new(shape: QueryTokenId, location_name: "tokenId"))
|
215
|
+
TokenFilter.struct_class = Types::TokenFilter
|
216
|
+
|
217
|
+
TokenIdentifier.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
218
|
+
TokenIdentifier.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
|
219
|
+
TokenIdentifier.add_member(:token_id, Shapes::ShapeRef.new(shape: QueryTokenId, location_name: "tokenId"))
|
220
|
+
TokenIdentifier.struct_class = Types::TokenIdentifier
|
221
|
+
|
222
|
+
Transaction.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
223
|
+
Transaction.add_member(:block_hash, Shapes::ShapeRef.new(shape: BlockHash, location_name: "blockHash"))
|
224
|
+
Transaction.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
|
225
|
+
Transaction.add_member(:block_number, Shapes::ShapeRef.new(shape: String, location_name: "blockNumber"))
|
226
|
+
Transaction.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
|
227
|
+
Transaction.add_member(:transaction_index, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "transactionIndex"))
|
228
|
+
Transaction.add_member(:number_of_transactions, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "numberOfTransactions"))
|
229
|
+
Transaction.add_member(:status, Shapes::ShapeRef.new(shape: QueryTransactionStatus, required: true, location_name: "status"))
|
230
|
+
Transaction.add_member(:to, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "to"))
|
231
|
+
Transaction.add_member(:from, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "from"))
|
232
|
+
Transaction.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
|
233
|
+
Transaction.add_member(:gas_used, Shapes::ShapeRef.new(shape: String, location_name: "gasUsed"))
|
234
|
+
Transaction.add_member(:cumulative_gas_used, Shapes::ShapeRef.new(shape: String, location_name: "cumulativeGasUsed"))
|
235
|
+
Transaction.add_member(:effective_gas_price, Shapes::ShapeRef.new(shape: String, location_name: "effectiveGasPrice"))
|
236
|
+
Transaction.add_member(:signature_v, Shapes::ShapeRef.new(shape: Integer, location_name: "signatureV"))
|
237
|
+
Transaction.add_member(:signature_r, Shapes::ShapeRef.new(shape: String, location_name: "signatureR"))
|
238
|
+
Transaction.add_member(:signature_s, Shapes::ShapeRef.new(shape: String, location_name: "signatureS"))
|
239
|
+
Transaction.add_member(:transaction_fee, Shapes::ShapeRef.new(shape: String, location_name: "transactionFee"))
|
240
|
+
Transaction.add_member(:transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "transactionId"))
|
241
|
+
Transaction.struct_class = Types::Transaction
|
242
|
+
|
243
|
+
TransactionEvent.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
244
|
+
TransactionEvent.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
|
245
|
+
TransactionEvent.add_member(:event_type, Shapes::ShapeRef.new(shape: QueryTransactionEventType, required: true, location_name: "eventType"))
|
246
|
+
TransactionEvent.add_member(:from, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "from"))
|
247
|
+
TransactionEvent.add_member(:to, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "to"))
|
248
|
+
TransactionEvent.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
249
|
+
TransactionEvent.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
|
250
|
+
TransactionEvent.add_member(:token_id, Shapes::ShapeRef.new(shape: QueryTokenId, location_name: "tokenId"))
|
251
|
+
TransactionEvent.add_member(:transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "transactionId"))
|
252
|
+
TransactionEvent.add_member(:vout_index, Shapes::ShapeRef.new(shape: Integer, location_name: "voutIndex"))
|
253
|
+
TransactionEvent.struct_class = Types::TransactionEvent
|
254
|
+
|
255
|
+
TransactionEventList.member = Shapes::ShapeRef.new(shape: TransactionEvent)
|
256
|
+
|
257
|
+
TransactionOutputItem.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
|
258
|
+
TransactionOutputItem.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
259
|
+
TransactionOutputItem.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
|
260
|
+
TransactionOutputItem.struct_class = Types::TransactionOutputItem
|
261
|
+
|
262
|
+
TransactionOutputList.member = Shapes::ShapeRef.new(shape: TransactionOutputItem)
|
263
|
+
|
264
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
|
265
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
266
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
267
|
+
ValidationException.struct_class = Types::ValidationException
|
268
|
+
|
269
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
270
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
271
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
272
|
+
|
273
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
274
|
+
|
275
|
+
|
276
|
+
# @api private
|
277
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
278
|
+
|
279
|
+
api.version = "2023-05-04"
|
280
|
+
|
281
|
+
api.metadata = {
|
282
|
+
"apiVersion" => "2023-05-04",
|
283
|
+
"endpointPrefix" => "managedblockchain-query",
|
284
|
+
"jsonVersion" => "1.1",
|
285
|
+
"protocol" => "rest-json",
|
286
|
+
"ripServiceName" => "chainquery",
|
287
|
+
"serviceFullName" => "Amazon Managed Blockchain Query",
|
288
|
+
"serviceId" => "ManagedBlockchain Query",
|
289
|
+
"signatureVersion" => "v4",
|
290
|
+
"signingName" => "managedblockchain-query",
|
291
|
+
"uid" => "managedblockchain-query-2023-05-04",
|
292
|
+
}
|
293
|
+
|
294
|
+
api.add_operation(:batch_get_token_balance, Seahorse::Model::Operation.new.tap do |o|
|
295
|
+
o.name = "BatchGetTokenBalance"
|
296
|
+
o.http_method = "POST"
|
297
|
+
o.http_request_uri = "/batch-get-token-balance"
|
298
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetTokenBalanceInput)
|
299
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetTokenBalanceOutput)
|
300
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
301
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
302
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
303
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
304
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
305
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
306
|
+
end)
|
307
|
+
|
308
|
+
api.add_operation(:get_token_balance, Seahorse::Model::Operation.new.tap do |o|
|
309
|
+
o.name = "GetTokenBalance"
|
310
|
+
o.http_method = "POST"
|
311
|
+
o.http_request_uri = "/get-token-balance"
|
312
|
+
o.input = Shapes::ShapeRef.new(shape: GetTokenBalanceInput)
|
313
|
+
o.output = Shapes::ShapeRef.new(shape: GetTokenBalanceOutput)
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
315
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
317
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
318
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
319
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
320
|
+
end)
|
321
|
+
|
322
|
+
api.add_operation(:get_transaction, Seahorse::Model::Operation.new.tap do |o|
|
323
|
+
o.name = "GetTransaction"
|
324
|
+
o.http_method = "POST"
|
325
|
+
o.http_request_uri = "/get-transaction"
|
326
|
+
o.input = Shapes::ShapeRef.new(shape: GetTransactionInput)
|
327
|
+
o.output = Shapes::ShapeRef.new(shape: GetTransactionOutput)
|
328
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
330
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
331
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
332
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
333
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
334
|
+
end)
|
335
|
+
|
336
|
+
api.add_operation(:list_token_balances, Seahorse::Model::Operation.new.tap do |o|
|
337
|
+
o.name = "ListTokenBalances"
|
338
|
+
o.http_method = "POST"
|
339
|
+
o.http_request_uri = "/list-token-balances"
|
340
|
+
o.input = Shapes::ShapeRef.new(shape: ListTokenBalancesInput)
|
341
|
+
o.output = Shapes::ShapeRef.new(shape: ListTokenBalancesOutput)
|
342
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
343
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
344
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
347
|
+
o[:pager] = Aws::Pager.new(
|
348
|
+
limit_key: "max_results",
|
349
|
+
tokens: {
|
350
|
+
"next_token" => "next_token"
|
351
|
+
}
|
352
|
+
)
|
353
|
+
end)
|
354
|
+
|
355
|
+
api.add_operation(:list_transaction_events, Seahorse::Model::Operation.new.tap do |o|
|
356
|
+
o.name = "ListTransactionEvents"
|
357
|
+
o.http_method = "POST"
|
358
|
+
o.http_request_uri = "/list-transaction-events"
|
359
|
+
o.input = Shapes::ShapeRef.new(shape: ListTransactionEventsInput)
|
360
|
+
o.output = Shapes::ShapeRef.new(shape: ListTransactionEventsOutput)
|
361
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
362
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
366
|
+
o[:pager] = Aws::Pager.new(
|
367
|
+
limit_key: "max_results",
|
368
|
+
tokens: {
|
369
|
+
"next_token" => "next_token"
|
370
|
+
}
|
371
|
+
)
|
372
|
+
end)
|
373
|
+
|
374
|
+
api.add_operation(:list_transactions, Seahorse::Model::Operation.new.tap do |o|
|
375
|
+
o.name = "ListTransactions"
|
376
|
+
o.http_method = "POST"
|
377
|
+
o.http_request_uri = "/list-transactions"
|
378
|
+
o.input = Shapes::ShapeRef.new(shape: ListTransactionsInput)
|
379
|
+
o.output = Shapes::ShapeRef.new(shape: ListTransactionsOutput)
|
380
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
381
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
383
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
385
|
+
o[:pager] = Aws::Pager.new(
|
386
|
+
limit_key: "max_results",
|
387
|
+
tokens: {
|
388
|
+
"next_token" => "next_token"
|
389
|
+
}
|
390
|
+
)
|
391
|
+
end)
|
392
|
+
end
|
393
|
+
|
394
|
+
end
|
395
|
+
end
|
File without changes
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ManagedBlockchainQuery
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ManagedBlockchainQuery
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://managedblockchain-query-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://managedblockchain-query-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://managedblockchain-query.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://managedblockchain-query.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::ManagedBlockchainQuery
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class BatchGetTokenBalance
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::ManagedBlockchainQuery::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class GetTokenBalance
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::ManagedBlockchainQuery::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class GetTransaction
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::ManagedBlockchainQuery::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class ListTokenBalances
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::ManagedBlockchainQuery::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class ListTransactionEvents
|
72
|
+
def self.build(context)
|
73
|
+
unless context.config.regional_endpoint
|
74
|
+
endpoint = context.config.endpoint.to_s
|
75
|
+
end
|
76
|
+
Aws::ManagedBlockchainQuery::EndpointParameters.new(
|
77
|
+
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
|
+
use_fips: context.config.use_fips_endpoint,
|
80
|
+
endpoint: endpoint,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListTransactions
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::ManagedBlockchainQuery::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|