aws-sdk-managedblockchain 1.46.0 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-managedblockchain/client.rb +36 -4
- data/lib/aws-sdk-managedblockchain/client_api.rb +6 -0
- data/lib/aws-sdk-managedblockchain/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-managedblockchain/types.rb +56 -13
- data/lib/aws-sdk-managedblockchain.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4fba71336a5e3d2fcd55f05c329cb9bbcb14b781654b9bf627ec8247fa1d5c7
|
4
|
+
data.tar.gz: 30f44fc937ef194e11f0aea2123816ff3fc32b80bdbe40f8951a346048f8302a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecf1c34e2a09127eef458878fe7a9152e96b6f2b0ced7ca4c637a39dadb17f55c27953ab487c91d770fbea53c802414d64f64df5a656ca6269abc3ffb360a2ef
|
7
|
+
data.tar.gz: 73517029dd68945bb17fef7f3bb63a22e29357efced6d2be75f1c773295154f74abdec5197f996f7ba5747423089c6a06f7a364e0754e71c8f3ee0b0a289bdda
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.0
|
@@ -388,9 +388,9 @@ module Aws::ManagedBlockchain
|
|
388
388
|
|
389
389
|
# @!group API Operations
|
390
390
|
|
391
|
-
# Creates a new accessor for use with Managed Blockchain
|
392
|
-
#
|
393
|
-
#
|
391
|
+
# Creates a new accessor for use with Amazon Managed Blockchain service
|
392
|
+
# that supports token based access. The accessor contains information
|
393
|
+
# required for token based access.
|
394
394
|
#
|
395
395
|
# @option params [required, String] :client_request_token
|
396
396
|
# This is a unique, case-sensitive identifier that you provide to ensure
|
@@ -426,10 +426,28 @@ module Aws::ManagedBlockchain
|
|
426
426
|
# [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html
|
427
427
|
# [2]: https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html
|
428
428
|
#
|
429
|
+
# @option params [String] :network_type
|
430
|
+
# The blockchain network that the `Accessor` token is created for.
|
431
|
+
#
|
432
|
+
# <note markdown="1"> We recommend using the appropriate `networkType` value for the
|
433
|
+
# blockchain network that you are creating the `Accessor` token for. You
|
434
|
+
# cannnot use the value `ETHEREUM_MAINNET_AND_GOERLI` to specify a
|
435
|
+
# `networkType` for your Accessor token.
|
436
|
+
#
|
437
|
+
# The default value of `ETHEREUM_MAINNET_AND_GOERLI` is only applied:
|
438
|
+
#
|
439
|
+
# * when the `CreateAccessor` action does not set a `networkType`.
|
440
|
+
#
|
441
|
+
# * to all existing `Accessor` tokens that were created before the
|
442
|
+
# `networkType` property was introduced.
|
443
|
+
#
|
444
|
+
# </note>
|
445
|
+
#
|
429
446
|
# @return [Types::CreateAccessorOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
430
447
|
#
|
431
448
|
# * {Types::CreateAccessorOutput#accessor_id #accessor_id} => String
|
432
449
|
# * {Types::CreateAccessorOutput#billing_token #billing_token} => String
|
450
|
+
# * {Types::CreateAccessorOutput#network_type #network_type} => String
|
433
451
|
#
|
434
452
|
# @example Request syntax with placeholder values
|
435
453
|
#
|
@@ -439,12 +457,14 @@ module Aws::ManagedBlockchain
|
|
439
457
|
# tags: {
|
440
458
|
# "TagKey" => "TagValue",
|
441
459
|
# },
|
460
|
+
# network_type: "ETHEREUM_GOERLI", # accepts ETHEREUM_GOERLI, ETHEREUM_MAINNET, ETHEREUM_MAINNET_AND_GOERLI, POLYGON_MAINNET, POLYGON_MUMBAI
|
442
461
|
# })
|
443
462
|
#
|
444
463
|
# @example Response structure
|
445
464
|
#
|
446
465
|
# resp.accessor_id #=> String
|
447
466
|
# resp.billing_token #=> String
|
467
|
+
# resp.network_type #=> String, one of "ETHEREUM_GOERLI", "ETHEREUM_MAINNET", "ETHEREUM_MAINNET_AND_GOERLI", "POLYGON_MAINNET", "POLYGON_MUMBAI"
|
448
468
|
#
|
449
469
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/CreateAccessor AWS API Documentation
|
450
470
|
#
|
@@ -970,6 +990,7 @@ module Aws::ManagedBlockchain
|
|
970
990
|
# resp.accessor.arn #=> String
|
971
991
|
# resp.accessor.tags #=> Hash
|
972
992
|
# resp.accessor.tags["TagKey"] #=> String
|
993
|
+
# resp.accessor.network_type #=> String, one of "ETHEREUM_GOERLI", "ETHEREUM_MAINNET", "ETHEREUM_MAINNET_AND_GOERLI", "POLYGON_MAINNET", "POLYGON_MUMBAI"
|
973
994
|
#
|
974
995
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/GetAccessor AWS API Documentation
|
975
996
|
#
|
@@ -1192,6 +1213,15 @@ module Aws::ManagedBlockchain
|
|
1192
1213
|
# The pagination token that indicates the next set of results to
|
1193
1214
|
# retrieve.
|
1194
1215
|
#
|
1216
|
+
# @option params [String] :network_type
|
1217
|
+
# The blockchain network that the `Accessor` token is created for.
|
1218
|
+
#
|
1219
|
+
# <note markdown="1"> Use the value `ETHEREUM_MAINNET_AND_GOERLI` for all existing
|
1220
|
+
# `Accessors` tokens that were created before the `networkType` property
|
1221
|
+
# was introduced.
|
1222
|
+
#
|
1223
|
+
# </note>
|
1224
|
+
#
|
1195
1225
|
# @return [Types::ListAccessorsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1196
1226
|
#
|
1197
1227
|
# * {Types::ListAccessorsOutput#accessors #accessors} => Array<Types::AccessorSummary>
|
@@ -1204,6 +1234,7 @@ module Aws::ManagedBlockchain
|
|
1204
1234
|
# resp = client.list_accessors({
|
1205
1235
|
# max_results: 1,
|
1206
1236
|
# next_token: "PaginationToken",
|
1237
|
+
# network_type: "ETHEREUM_GOERLI", # accepts ETHEREUM_GOERLI, ETHEREUM_MAINNET, ETHEREUM_MAINNET_AND_GOERLI, POLYGON_MAINNET, POLYGON_MUMBAI
|
1207
1238
|
# })
|
1208
1239
|
#
|
1209
1240
|
# @example Response structure
|
@@ -1214,6 +1245,7 @@ module Aws::ManagedBlockchain
|
|
1214
1245
|
# resp.accessors[0].status #=> String, one of "AVAILABLE", "PENDING_DELETION", "DELETED"
|
1215
1246
|
# resp.accessors[0].creation_date #=> Time
|
1216
1247
|
# resp.accessors[0].arn #=> String
|
1248
|
+
# resp.accessors[0].network_type #=> String, one of "ETHEREUM_GOERLI", "ETHEREUM_MAINNET", "ETHEREUM_MAINNET_AND_GOERLI", "POLYGON_MAINNET", "POLYGON_MUMBAI"
|
1217
1249
|
# resp.next_token #=> String
|
1218
1250
|
#
|
1219
1251
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/ListAccessors AWS API Documentation
|
@@ -1886,7 +1918,7 @@ module Aws::ManagedBlockchain
|
|
1886
1918
|
params: params,
|
1887
1919
|
config: config)
|
1888
1920
|
context[:gem_name] = 'aws-sdk-managedblockchain'
|
1889
|
-
context[:gem_version] = '1.
|
1921
|
+
context[:gem_version] = '1.47.0'
|
1890
1922
|
Seahorse::Client::Request.new(handlers, context)
|
1891
1923
|
end
|
1892
1924
|
|
@@ -17,6 +17,7 @@ module Aws::ManagedBlockchain
|
|
17
17
|
Accessor = Shapes::StructureShape.new(name: 'Accessor')
|
18
18
|
AccessorBillingTokenString = Shapes::StringShape.new(name: 'AccessorBillingTokenString')
|
19
19
|
AccessorListMaxResults = Shapes::IntegerShape.new(name: 'AccessorListMaxResults')
|
20
|
+
AccessorNetworkType = Shapes::StringShape.new(name: 'AccessorNetworkType')
|
20
21
|
AccessorStatus = Shapes::StringShape.new(name: 'AccessorStatus')
|
21
22
|
AccessorSummary = Shapes::StructureShape.new(name: 'AccessorSummary')
|
22
23
|
AccessorSummaryList = Shapes::ListShape.new(name: 'AccessorSummaryList')
|
@@ -178,6 +179,7 @@ module Aws::ManagedBlockchain
|
|
178
179
|
Accessor.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
|
179
180
|
Accessor.add_member(:arn, Shapes::ShapeRef.new(shape: ArnString, location_name: "Arn"))
|
180
181
|
Accessor.add_member(:tags, Shapes::ShapeRef.new(shape: OutputTagMap, location_name: "Tags"))
|
182
|
+
Accessor.add_member(:network_type, Shapes::ShapeRef.new(shape: AccessorNetworkType, location_name: "NetworkType"))
|
181
183
|
Accessor.struct_class = Types::Accessor
|
182
184
|
|
183
185
|
AccessorSummary.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "Id"))
|
@@ -185,6 +187,7 @@ module Aws::ManagedBlockchain
|
|
185
187
|
AccessorSummary.add_member(:status, Shapes::ShapeRef.new(shape: AccessorStatus, location_name: "Status"))
|
186
188
|
AccessorSummary.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
|
187
189
|
AccessorSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ArnString, location_name: "Arn"))
|
190
|
+
AccessorSummary.add_member(:network_type, Shapes::ShapeRef.new(shape: AccessorNetworkType, location_name: "NetworkType"))
|
188
191
|
AccessorSummary.struct_class = Types::AccessorSummary
|
189
192
|
|
190
193
|
AccessorSummaryList.member = Shapes::ShapeRef.new(shape: AccessorSummary)
|
@@ -197,10 +200,12 @@ module Aws::ManagedBlockchain
|
|
197
200
|
CreateAccessorInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
198
201
|
CreateAccessorInput.add_member(:accessor_type, Shapes::ShapeRef.new(shape: AccessorType, required: true, location_name: "AccessorType"))
|
199
202
|
CreateAccessorInput.add_member(:tags, Shapes::ShapeRef.new(shape: InputTagMap, location_name: "Tags"))
|
203
|
+
CreateAccessorInput.add_member(:network_type, Shapes::ShapeRef.new(shape: AccessorNetworkType, location_name: "NetworkType"))
|
200
204
|
CreateAccessorInput.struct_class = Types::CreateAccessorInput
|
201
205
|
|
202
206
|
CreateAccessorOutput.add_member(:accessor_id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "AccessorId"))
|
203
207
|
CreateAccessorOutput.add_member(:billing_token, Shapes::ShapeRef.new(shape: AccessorBillingTokenString, location_name: "BillingToken"))
|
208
|
+
CreateAccessorOutput.add_member(:network_type, Shapes::ShapeRef.new(shape: AccessorNetworkType, location_name: "NetworkType"))
|
204
209
|
CreateAccessorOutput.struct_class = Types::CreateAccessorOutput
|
205
210
|
|
206
211
|
CreateMemberInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
@@ -328,6 +333,7 @@ module Aws::ManagedBlockchain
|
|
328
333
|
|
329
334
|
ListAccessorsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: AccessorListMaxResults, location: "querystring", location_name: "maxResults"))
|
330
335
|
ListAccessorsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
336
|
+
ListAccessorsInput.add_member(:network_type, Shapes::ShapeRef.new(shape: AccessorNetworkType, location: "querystring", location_name: "networkType"))
|
331
337
|
ListAccessorsInput.struct_class = Types::ListAccessorsInput
|
332
338
|
|
333
339
|
ListAccessorsOutput.add_member(:accessors, Shapes::ShapeRef.new(shape: AccessorSummaryList, location_name: "Accessors"))
|
@@ -32,7 +32,7 @@ module Aws::ManagedBlockchain
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://managedblockchain-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -38,10 +38,9 @@ module Aws::ManagedBlockchain
|
|
38
38
|
# @return [String]
|
39
39
|
#
|
40
40
|
# @!attribute [rw] billing_token
|
41
|
-
# The billing token is a property of the
|
42
|
-
#
|
43
|
-
# used to track your accessor
|
44
|
-
# made to your Ethereum nodes.
|
41
|
+
# The billing token is a property of the Accessor. Use this token to
|
42
|
+
# when making calls to the blockchain network. The billing token is
|
43
|
+
# used to track your accessor token for billing requests.
|
45
44
|
# @return [String]
|
46
45
|
#
|
47
46
|
# @!attribute [rw] status
|
@@ -76,6 +75,10 @@ module Aws::ManagedBlockchain
|
|
76
75
|
# [2]: https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html
|
77
76
|
# @return [Hash<String,String>]
|
78
77
|
#
|
78
|
+
# @!attribute [rw] network_type
|
79
|
+
# The blockchain network that the Accessor token is created for.
|
80
|
+
# @return [String]
|
81
|
+
#
|
79
82
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/Accessor AWS API Documentation
|
80
83
|
#
|
81
84
|
class Accessor < Struct.new(
|
@@ -85,7 +88,8 @@ module Aws::ManagedBlockchain
|
|
85
88
|
:status,
|
86
89
|
:creation_date,
|
87
90
|
:arn,
|
88
|
-
:tags
|
91
|
+
:tags,
|
92
|
+
:network_type)
|
89
93
|
SENSITIVE = []
|
90
94
|
include Aws::Structure
|
91
95
|
end
|
@@ -122,6 +126,10 @@ module Aws::ManagedBlockchain
|
|
122
126
|
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
123
127
|
# @return [String]
|
124
128
|
#
|
129
|
+
# @!attribute [rw] network_type
|
130
|
+
# The blockchain network that the Accessor token is created for.
|
131
|
+
# @return [String]
|
132
|
+
#
|
125
133
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/AccessorSummary AWS API Documentation
|
126
134
|
#
|
127
135
|
class AccessorSummary < Struct.new(
|
@@ -129,7 +137,8 @@ module Aws::ManagedBlockchain
|
|
129
137
|
:type,
|
130
138
|
:status,
|
131
139
|
:creation_date,
|
132
|
-
:arn
|
140
|
+
:arn,
|
141
|
+
:network_type)
|
133
142
|
SENSITIVE = []
|
134
143
|
include Aws::Structure
|
135
144
|
end
|
@@ -163,7 +172,7 @@ module Aws::ManagedBlockchain
|
|
163
172
|
# @!attribute [rw] threshold_comparator
|
164
173
|
# Determines whether the vote percentage must be greater than the
|
165
174
|
# `ThresholdPercentage` or must be greater than or equal to the
|
166
|
-
# `
|
175
|
+
# `ThresholdPercentage` to be approved.
|
167
176
|
# @return [String]
|
168
177
|
#
|
169
178
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/ApprovalThresholdPolicy AWS API Documentation
|
@@ -214,12 +223,31 @@ module Aws::ManagedBlockchain
|
|
214
223
|
# [2]: https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html
|
215
224
|
# @return [Hash<String,String>]
|
216
225
|
#
|
226
|
+
# @!attribute [rw] network_type
|
227
|
+
# The blockchain network that the `Accessor` token is created for.
|
228
|
+
#
|
229
|
+
# <note markdown="1"> We recommend using the appropriate `networkType` value for the
|
230
|
+
# blockchain network that you are creating the `Accessor` token for.
|
231
|
+
# You cannnot use the value `ETHEREUM_MAINNET_AND_GOERLI` to specify a
|
232
|
+
# `networkType` for your Accessor token.
|
233
|
+
#
|
234
|
+
# The default value of `ETHEREUM_MAINNET_AND_GOERLI` is only applied:
|
235
|
+
#
|
236
|
+
# * when the `CreateAccessor` action does not set a `networkType`.
|
237
|
+
#
|
238
|
+
# * to all existing `Accessor` tokens that were created before the
|
239
|
+
# `networkType` property was introduced.
|
240
|
+
#
|
241
|
+
# </note>
|
242
|
+
# @return [String]
|
243
|
+
#
|
217
244
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/CreateAccessorInput AWS API Documentation
|
218
245
|
#
|
219
246
|
class CreateAccessorInput < Struct.new(
|
220
247
|
:client_request_token,
|
221
248
|
:accessor_type,
|
222
|
-
:tags
|
249
|
+
:tags,
|
250
|
+
:network_type)
|
223
251
|
SENSITIVE = []
|
224
252
|
include Aws::Structure
|
225
253
|
end
|
@@ -230,16 +258,20 @@ module Aws::ManagedBlockchain
|
|
230
258
|
#
|
231
259
|
# @!attribute [rw] billing_token
|
232
260
|
# The billing token is a property of the Accessor. Use this token to
|
233
|
-
#
|
234
|
-
# used to track your accessor
|
235
|
-
#
|
261
|
+
# when making calls to the blockchain network. The billing token is
|
262
|
+
# used to track your accessor token for billing requests.
|
263
|
+
# @return [String]
|
264
|
+
#
|
265
|
+
# @!attribute [rw] network_type
|
266
|
+
# The blockchain network that the accessor token is created for.
|
236
267
|
# @return [String]
|
237
268
|
#
|
238
269
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/CreateAccessorOutput AWS API Documentation
|
239
270
|
#
|
240
271
|
class CreateAccessorOutput < Struct.new(
|
241
272
|
:accessor_id,
|
242
|
-
:billing_token
|
273
|
+
:billing_token,
|
274
|
+
:network_type)
|
243
275
|
SENSITIVE = []
|
244
276
|
include Aws::Structure
|
245
277
|
end
|
@@ -875,11 +907,22 @@ module Aws::ManagedBlockchain
|
|
875
907
|
# retrieve.
|
876
908
|
# @return [String]
|
877
909
|
#
|
910
|
+
# @!attribute [rw] network_type
|
911
|
+
# The blockchain network that the `Accessor` token is created for.
|
912
|
+
#
|
913
|
+
# <note markdown="1"> Use the value `ETHEREUM_MAINNET_AND_GOERLI` for all existing
|
914
|
+
# `Accessors` tokens that were created before the `networkType`
|
915
|
+
# property was introduced.
|
916
|
+
#
|
917
|
+
# </note>
|
918
|
+
# @return [String]
|
919
|
+
#
|
878
920
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/ListAccessorsInput AWS API Documentation
|
879
921
|
#
|
880
922
|
class ListAccessorsInput < Struct.new(
|
881
923
|
:max_results,
|
882
|
-
:next_token
|
924
|
+
:next_token,
|
925
|
+
:network_type)
|
883
926
|
SENSITIVE = []
|
884
927
|
include Aws::Structure
|
885
928
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-managedblockchain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.47.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|