aws-sdk-managedblockchain 1.7.0 → 1.12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ module Aws::ManagedBlockchain
29
29
  DeleteNodeOutput = Shapes::StructureShape.new(name: 'DeleteNodeOutput')
30
30
  DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
31
31
  Edition = Shapes::StringShape.new(name: 'Edition')
32
+ Enabled = Shapes::BooleanShape.new(name: 'Enabled')
32
33
  Framework = Shapes::StringShape.new(name: 'Framework')
33
34
  FrameworkVersionString = Shapes::StringShape.new(name: 'FrameworkVersionString')
34
35
  GetMemberInput = Shapes::StructureShape.new(name: 'GetMemberInput')
@@ -61,13 +62,17 @@ module Aws::ManagedBlockchain
61
62
  ListProposalVotesOutput = Shapes::StructureShape.new(name: 'ListProposalVotesOutput')
62
63
  ListProposalsInput = Shapes::StructureShape.new(name: 'ListProposalsInput')
63
64
  ListProposalsOutput = Shapes::StructureShape.new(name: 'ListProposalsOutput')
65
+ LogConfiguration = Shapes::StructureShape.new(name: 'LogConfiguration')
66
+ LogConfigurations = Shapes::StructureShape.new(name: 'LogConfigurations')
64
67
  Member = Shapes::StructureShape.new(name: 'Member')
65
68
  MemberConfiguration = Shapes::StructureShape.new(name: 'MemberConfiguration')
66
69
  MemberFabricAttributes = Shapes::StructureShape.new(name: 'MemberFabricAttributes')
67
70
  MemberFabricConfiguration = Shapes::StructureShape.new(name: 'MemberFabricConfiguration')
71
+ MemberFabricLogPublishingConfiguration = Shapes::StructureShape.new(name: 'MemberFabricLogPublishingConfiguration')
68
72
  MemberFrameworkAttributes = Shapes::StructureShape.new(name: 'MemberFrameworkAttributes')
69
73
  MemberFrameworkConfiguration = Shapes::StructureShape.new(name: 'MemberFrameworkConfiguration')
70
74
  MemberListMaxResults = Shapes::IntegerShape.new(name: 'MemberListMaxResults')
75
+ MemberLogPublishingConfiguration = Shapes::StructureShape.new(name: 'MemberLogPublishingConfiguration')
71
76
  MemberStatus = Shapes::StringShape.new(name: 'MemberStatus')
72
77
  MemberSummary = Shapes::StructureShape.new(name: 'MemberSummary')
73
78
  MemberSummaryList = Shapes::ListShape.new(name: 'MemberSummaryList')
@@ -85,8 +90,10 @@ module Aws::ManagedBlockchain
85
90
  Node = Shapes::StructureShape.new(name: 'Node')
86
91
  NodeConfiguration = Shapes::StructureShape.new(name: 'NodeConfiguration')
87
92
  NodeFabricAttributes = Shapes::StructureShape.new(name: 'NodeFabricAttributes')
93
+ NodeFabricLogPublishingConfiguration = Shapes::StructureShape.new(name: 'NodeFabricLogPublishingConfiguration')
88
94
  NodeFrameworkAttributes = Shapes::StructureShape.new(name: 'NodeFrameworkAttributes')
89
95
  NodeListMaxResults = Shapes::IntegerShape.new(name: 'NodeListMaxResults')
96
+ NodeLogPublishingConfiguration = Shapes::StructureShape.new(name: 'NodeLogPublishingConfiguration')
90
97
  NodeStatus = Shapes::StringShape.new(name: 'NodeStatus')
91
98
  NodeSummary = Shapes::StructureShape.new(name: 'NodeSummary')
92
99
  NodeSummaryList = Shapes::ListShape.new(name: 'NodeSummaryList')
@@ -115,6 +122,10 @@ module Aws::ManagedBlockchain
115
122
  ThresholdPercentageInt = Shapes::IntegerShape.new(name: 'ThresholdPercentageInt')
116
123
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
117
124
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
125
+ UpdateMemberInput = Shapes::StructureShape.new(name: 'UpdateMemberInput')
126
+ UpdateMemberOutput = Shapes::StructureShape.new(name: 'UpdateMemberOutput')
127
+ UpdateNodeInput = Shapes::StructureShape.new(name: 'UpdateNodeInput')
128
+ UpdateNodeOutput = Shapes::StructureShape.new(name: 'UpdateNodeOutput')
118
129
  UsernameString = Shapes::StringShape.new(name: 'UsernameString')
119
130
  VoteCount = Shapes::IntegerShape.new(name: 'VoteCount')
120
131
  VoteOnProposalInput = Shapes::StructureShape.new(name: 'VoteOnProposalInput')
@@ -123,6 +134,8 @@ module Aws::ManagedBlockchain
123
134
  VoteValue = Shapes::StringShape.new(name: 'VoteValue')
124
135
  VotingPolicy = Shapes::StructureShape.new(name: 'VotingPolicy')
125
136
 
137
+ AccessDeniedException.struct_class = Types::AccessDeniedException
138
+
126
139
  ApprovalThresholdPolicy.add_member(:threshold_percentage, Shapes::ShapeRef.new(shape: ThresholdPercentageInt, location_name: "ThresholdPercentage"))
127
140
  ApprovalThresholdPolicy.add_member(:proposal_duration_in_hours, Shapes::ShapeRef.new(shape: ProposalDurationInt, location_name: "ProposalDurationInHours"))
128
141
  ApprovalThresholdPolicy.add_member(:threshold_comparator, Shapes::ShapeRef.new(shape: ThresholdComparator, location_name: "ThresholdComparator"))
@@ -214,6 +227,8 @@ module Aws::ManagedBlockchain
214
227
  IllegalActionException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
215
228
  IllegalActionException.struct_class = Types::IllegalActionException
216
229
 
230
+ InternalServiceErrorException.struct_class = Types::InternalServiceErrorException
231
+
217
232
  InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
218
233
  InvalidRequestException.struct_class = Types::InvalidRequestException
219
234
 
@@ -292,11 +307,18 @@ module Aws::ManagedBlockchain
292
307
  ListProposalsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
293
308
  ListProposalsOutput.struct_class = Types::ListProposalsOutput
294
309
 
310
+ LogConfiguration.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
311
+ LogConfiguration.struct_class = Types::LogConfiguration
312
+
313
+ LogConfigurations.add_member(:cloudwatch, Shapes::ShapeRef.new(shape: LogConfiguration, location_name: "Cloudwatch"))
314
+ LogConfigurations.struct_class = Types::LogConfigurations
315
+
295
316
  Member.add_member(:network_id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "NetworkId"))
296
317
  Member.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "Id"))
297
318
  Member.add_member(:name, Shapes::ShapeRef.new(shape: NetworkMemberNameString, location_name: "Name"))
298
319
  Member.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
299
320
  Member.add_member(:framework_attributes, Shapes::ShapeRef.new(shape: MemberFrameworkAttributes, location_name: "FrameworkAttributes"))
321
+ Member.add_member(:log_publishing_configuration, Shapes::ShapeRef.new(shape: MemberLogPublishingConfiguration, location_name: "LogPublishingConfiguration"))
300
322
  Member.add_member(:status, Shapes::ShapeRef.new(shape: MemberStatus, location_name: "Status"))
301
323
  Member.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
302
324
  Member.struct_class = Types::Member
@@ -304,6 +326,7 @@ module Aws::ManagedBlockchain
304
326
  MemberConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: NetworkMemberNameString, required: true, location_name: "Name"))
305
327
  MemberConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
306
328
  MemberConfiguration.add_member(:framework_configuration, Shapes::ShapeRef.new(shape: MemberFrameworkConfiguration, required: true, location_name: "FrameworkConfiguration"))
329
+ MemberConfiguration.add_member(:log_publishing_configuration, Shapes::ShapeRef.new(shape: MemberLogPublishingConfiguration, location_name: "LogPublishingConfiguration"))
307
330
  MemberConfiguration.struct_class = Types::MemberConfiguration
308
331
 
309
332
  MemberFabricAttributes.add_member(:admin_username, Shapes::ShapeRef.new(shape: UsernameString, location_name: "AdminUsername"))
@@ -314,12 +337,18 @@ module Aws::ManagedBlockchain
314
337
  MemberFabricConfiguration.add_member(:admin_password, Shapes::ShapeRef.new(shape: PasswordString, required: true, location_name: "AdminPassword"))
315
338
  MemberFabricConfiguration.struct_class = Types::MemberFabricConfiguration
316
339
 
340
+ MemberFabricLogPublishingConfiguration.add_member(:ca_logs, Shapes::ShapeRef.new(shape: LogConfigurations, location_name: "CaLogs"))
341
+ MemberFabricLogPublishingConfiguration.struct_class = Types::MemberFabricLogPublishingConfiguration
342
+
317
343
  MemberFrameworkAttributes.add_member(:fabric, Shapes::ShapeRef.new(shape: MemberFabricAttributes, location_name: "Fabric"))
318
344
  MemberFrameworkAttributes.struct_class = Types::MemberFrameworkAttributes
319
345
 
320
346
  MemberFrameworkConfiguration.add_member(:fabric, Shapes::ShapeRef.new(shape: MemberFabricConfiguration, location_name: "Fabric"))
321
347
  MemberFrameworkConfiguration.struct_class = Types::MemberFrameworkConfiguration
322
348
 
349
+ MemberLogPublishingConfiguration.add_member(:fabric, Shapes::ShapeRef.new(shape: MemberFabricLogPublishingConfiguration, location_name: "Fabric"))
350
+ MemberLogPublishingConfiguration.struct_class = Types::MemberLogPublishingConfiguration
351
+
323
352
  MemberSummary.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "Id"))
324
353
  MemberSummary.add_member(:name, Shapes::ShapeRef.new(shape: NetworkMemberNameString, location_name: "Name"))
325
354
  MemberSummary.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
@@ -372,21 +401,30 @@ module Aws::ManagedBlockchain
372
401
  Node.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceTypeString, location_name: "InstanceType"))
373
402
  Node.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneString, location_name: "AvailabilityZone"))
374
403
  Node.add_member(:framework_attributes, Shapes::ShapeRef.new(shape: NodeFrameworkAttributes, location_name: "FrameworkAttributes"))
404
+ Node.add_member(:log_publishing_configuration, Shapes::ShapeRef.new(shape: NodeLogPublishingConfiguration, location_name: "LogPublishingConfiguration"))
375
405
  Node.add_member(:status, Shapes::ShapeRef.new(shape: NodeStatus, location_name: "Status"))
376
406
  Node.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
377
407
  Node.struct_class = Types::Node
378
408
 
379
409
  NodeConfiguration.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceTypeString, required: true, location_name: "InstanceType"))
380
410
  NodeConfiguration.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneString, required: true, location_name: "AvailabilityZone"))
411
+ NodeConfiguration.add_member(:log_publishing_configuration, Shapes::ShapeRef.new(shape: NodeLogPublishingConfiguration, location_name: "LogPublishingConfiguration"))
381
412
  NodeConfiguration.struct_class = Types::NodeConfiguration
382
413
 
383
414
  NodeFabricAttributes.add_member(:peer_endpoint, Shapes::ShapeRef.new(shape: String, location_name: "PeerEndpoint"))
384
415
  NodeFabricAttributes.add_member(:peer_event_endpoint, Shapes::ShapeRef.new(shape: String, location_name: "PeerEventEndpoint"))
385
416
  NodeFabricAttributes.struct_class = Types::NodeFabricAttributes
386
417
 
418
+ NodeFabricLogPublishingConfiguration.add_member(:chaincode_logs, Shapes::ShapeRef.new(shape: LogConfigurations, location_name: "ChaincodeLogs"))
419
+ NodeFabricLogPublishingConfiguration.add_member(:peer_logs, Shapes::ShapeRef.new(shape: LogConfigurations, location_name: "PeerLogs"))
420
+ NodeFabricLogPublishingConfiguration.struct_class = Types::NodeFabricLogPublishingConfiguration
421
+
387
422
  NodeFrameworkAttributes.add_member(:fabric, Shapes::ShapeRef.new(shape: NodeFabricAttributes, location_name: "Fabric"))
388
423
  NodeFrameworkAttributes.struct_class = Types::NodeFrameworkAttributes
389
424
 
425
+ NodeLogPublishingConfiguration.add_member(:fabric, Shapes::ShapeRef.new(shape: NodeFabricLogPublishingConfiguration, location_name: "Fabric"))
426
+ NodeLogPublishingConfiguration.struct_class = Types::NodeLogPublishingConfiguration
427
+
390
428
  NodeSummary.add_member(:id, Shapes::ShapeRef.new(shape: ResourceIdString, location_name: "Id"))
391
429
  NodeSummary.add_member(:status, Shapes::ShapeRef.new(shape: NodeStatus, location_name: "Status"))
392
430
  NodeSummary.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
@@ -449,6 +487,23 @@ module Aws::ManagedBlockchain
449
487
  ResourceNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
450
488
  ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
451
489
 
490
+ ThrottlingException.struct_class = Types::ThrottlingException
491
+
492
+ UpdateMemberInput.add_member(:network_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "networkId"))
493
+ UpdateMemberInput.add_member(:member_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "memberId"))
494
+ UpdateMemberInput.add_member(:log_publishing_configuration, Shapes::ShapeRef.new(shape: MemberLogPublishingConfiguration, location_name: "LogPublishingConfiguration"))
495
+ UpdateMemberInput.struct_class = Types::UpdateMemberInput
496
+
497
+ UpdateMemberOutput.struct_class = Types::UpdateMemberOutput
498
+
499
+ UpdateNodeInput.add_member(:network_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "networkId"))
500
+ UpdateNodeInput.add_member(:member_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "memberId"))
501
+ UpdateNodeInput.add_member(:node_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "nodeId"))
502
+ UpdateNodeInput.add_member(:log_publishing_configuration, Shapes::ShapeRef.new(shape: NodeLogPublishingConfiguration, location_name: "LogPublishingConfiguration"))
503
+ UpdateNodeInput.struct_class = Types::UpdateNodeInput
504
+
505
+ UpdateNodeOutput.struct_class = Types::UpdateNodeOutput
506
+
452
507
  VoteOnProposalInput.add_member(:network_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "networkId"))
453
508
  VoteOnProposalInput.add_member(:proposal_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location: "uri", location_name: "proposalId"))
454
509
  VoteOnProposalInput.add_member(:voter_member_id, Shapes::ShapeRef.new(shape: ResourceIdString, required: true, location_name: "VoterMemberId"))
@@ -749,6 +804,32 @@ module Aws::ManagedBlockchain
749
804
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
750
805
  end)
751
806
 
807
+ api.add_operation(:update_member, Seahorse::Model::Operation.new.tap do |o|
808
+ o.name = "UpdateMember"
809
+ o.http_method = "PATCH"
810
+ o.http_request_uri = "/networks/{networkId}/members/{memberId}"
811
+ o.input = Shapes::ShapeRef.new(shape: UpdateMemberInput)
812
+ o.output = Shapes::ShapeRef.new(shape: UpdateMemberOutput)
813
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
814
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
815
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
816
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
817
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
818
+ end)
819
+
820
+ api.add_operation(:update_node, Seahorse::Model::Operation.new.tap do |o|
821
+ o.name = "UpdateNode"
822
+ o.http_method = "PATCH"
823
+ o.http_request_uri = "/networks/{networkId}/members/{memberId}/nodes/{nodeId}"
824
+ o.input = Shapes::ShapeRef.new(shape: UpdateNodeInput)
825
+ o.output = Shapes::ShapeRef.new(shape: UpdateNodeOutput)
826
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
827
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
828
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
829
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
830
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
831
+ end)
832
+
752
833
  api.add_operation(:vote_on_proposal, Seahorse::Model::Operation.new.tap do |o|
753
834
  o.name = "VoteOnProposal"
754
835
  o.http_method = "POST"
@@ -6,10 +6,51 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ManagedBlockchain
9
+
10
+ # When ManagedBlockchain returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::ManagedBlockchain::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all ManagedBlockchain errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::ManagedBlockchain::Errors::ServiceError
18
+ # # rescues all ManagedBlockchain API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AccessDeniedException}
29
+ # * {IllegalActionException}
30
+ # * {InternalServiceErrorException}
31
+ # * {InvalidRequestException}
32
+ # * {ResourceAlreadyExistsException}
33
+ # * {ResourceLimitExceededException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ResourceNotReadyException}
36
+ # * {ThrottlingException}
37
+ #
38
+ # Additionally, error classes are dynamically generated for service errors based on the error code
39
+ # if they are not defined above.
9
40
  module Errors
10
41
 
11
42
  extend Aws::Errors::DynamicErrors
12
43
 
44
+ class AccessDeniedException < ServiceError
45
+
46
+ # @param [Seahorse::Client::RequestContext] context
47
+ # @param [String] message
48
+ # @param [Aws::ManagedBlockchain::Types::AccessDeniedException] data
49
+ def initialize(context, message, data = Aws::EmptyStructure.new)
50
+ super(context, message, data)
51
+ end
52
+ end
53
+
13
54
  class IllegalActionException < ServiceError
14
55
 
15
56
  # @param [Seahorse::Client::RequestContext] context
@@ -23,7 +64,16 @@ module Aws::ManagedBlockchain
23
64
  def message
24
65
  @message || @data[:message]
25
66
  end
67
+ end
68
+
69
+ class InternalServiceErrorException < ServiceError
26
70
 
71
+ # @param [Seahorse::Client::RequestContext] context
72
+ # @param [String] message
73
+ # @param [Aws::ManagedBlockchain::Types::InternalServiceErrorException] data
74
+ def initialize(context, message, data = Aws::EmptyStructure.new)
75
+ super(context, message, data)
76
+ end
27
77
  end
28
78
 
29
79
  class InvalidRequestException < ServiceError
@@ -39,7 +89,6 @@ module Aws::ManagedBlockchain
39
89
  def message
40
90
  @message || @data[:message]
41
91
  end
42
-
43
92
  end
44
93
 
45
94
  class ResourceAlreadyExistsException < ServiceError
@@ -55,7 +104,6 @@ module Aws::ManagedBlockchain
55
104
  def message
56
105
  @message || @data[:message]
57
106
  end
58
-
59
107
  end
60
108
 
61
109
  class ResourceLimitExceededException < ServiceError
@@ -71,7 +119,6 @@ module Aws::ManagedBlockchain
71
119
  def message
72
120
  @message || @data[:message]
73
121
  end
74
-
75
122
  end
76
123
 
77
124
  class ResourceNotFoundException < ServiceError
@@ -87,7 +134,6 @@ module Aws::ManagedBlockchain
87
134
  def message
88
135
  @message || @data[:message]
89
136
  end
90
-
91
137
  end
92
138
 
93
139
  class ResourceNotReadyException < ServiceError
@@ -103,7 +149,16 @@ module Aws::ManagedBlockchain
103
149
  def message
104
150
  @message || @data[:message]
105
151
  end
152
+ end
106
153
 
154
+ class ThrottlingException < ServiceError
155
+
156
+ # @param [Seahorse::Client::RequestContext] context
157
+ # @param [String] message
158
+ # @param [Aws::ManagedBlockchain::Types::ThrottlingException] data
159
+ def initialize(context, message, data = Aws::EmptyStructure.new)
160
+ super(context, message, data)
161
+ end
107
162
  end
108
163
 
109
164
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ManagedBlockchain
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -8,6 +8,12 @@
8
8
  module Aws::ManagedBlockchain
9
9
  module Types
10
10
 
11
+ # You do not have sufficient access to perform this action.
12
+ #
13
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/AccessDeniedException AWS API Documentation
14
+ #
15
+ class AccessDeniedException < Aws::EmptyStructure; end
16
+
11
17
  # A policy type that defines the voting rules for the network. The rules
12
18
  # decide if a proposal is approved. Approval may be based on criteria
13
19
  # such as the percentage of `YES` votes and the duration of the
@@ -72,6 +78,15 @@ module Aws::ManagedBlockchain
72
78
  # admin_password: "PasswordString", # required
73
79
  # },
74
80
  # },
81
+ # log_publishing_configuration: {
82
+ # fabric: {
83
+ # ca_logs: {
84
+ # cloudwatch: {
85
+ # enabled: false,
86
+ # },
87
+ # },
88
+ # },
89
+ # },
75
90
  # },
76
91
  # }
77
92
  #
@@ -150,6 +165,15 @@ module Aws::ManagedBlockchain
150
165
  # admin_password: "PasswordString", # required
151
166
  # },
152
167
  # },
168
+ # log_publishing_configuration: {
169
+ # fabric: {
170
+ # ca_logs: {
171
+ # cloudwatch: {
172
+ # enabled: false,
173
+ # },
174
+ # },
175
+ # },
176
+ # },
153
177
  # },
154
178
  # }
155
179
  #
@@ -234,6 +258,20 @@ module Aws::ManagedBlockchain
234
258
  # node_configuration: { # required
235
259
  # instance_type: "InstanceTypeString", # required
236
260
  # availability_zone: "AvailabilityZoneString", # required
261
+ # log_publishing_configuration: {
262
+ # fabric: {
263
+ # chaincode_logs: {
264
+ # cloudwatch: {
265
+ # enabled: false,
266
+ # },
267
+ # },
268
+ # peer_logs: {
269
+ # cloudwatch: {
270
+ # enabled: false,
271
+ # },
272
+ # },
273
+ # },
274
+ # },
237
275
  # },
238
276
  # }
239
277
  #
@@ -572,6 +610,13 @@ module Aws::ManagedBlockchain
572
610
  include Aws::Structure
573
611
  end
574
612
 
613
+ # The request processing has failed because of an unknown error,
614
+ # exception or failure.
615
+ #
616
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/InternalServiceErrorException AWS API Documentation
617
+ #
618
+ class InternalServiceErrorException < Aws::EmptyStructure; end
619
+
575
620
  # The action or operation requested is invalid. Verify that the action
576
621
  # is typed correctly.
577
622
  #
@@ -707,7 +752,7 @@ module Aws::ManagedBlockchain
707
752
  # {
708
753
  # network_id: "ResourceIdString", # required
709
754
  # name: "String",
710
- # status: "CREATING", # accepts CREATING, AVAILABLE, CREATE_FAILED, DELETING, DELETED
755
+ # status: "CREATING", # accepts CREATING, AVAILABLE, CREATE_FAILED, UPDATING, DELETING, DELETED
711
756
  # is_owned: false,
712
757
  # max_results: 1,
713
758
  # next_token: "PaginationToken",
@@ -841,7 +886,7 @@ module Aws::ManagedBlockchain
841
886
  # {
842
887
  # network_id: "ResourceIdString", # required
843
888
  # member_id: "ResourceIdString", # required
844
- # status: "CREATING", # accepts CREATING, AVAILABLE, CREATE_FAILED, DELETING, DELETED, FAILED
889
+ # status: "CREATING", # accepts CREATING, AVAILABLE, CREATE_FAILED, UPDATING, DELETING, DELETED, FAILED
845
890
  # max_results: 1,
846
891
  # next_token: "PaginationToken",
847
892
  # }
@@ -999,6 +1044,48 @@ module Aws::ManagedBlockchain
999
1044
  include Aws::Structure
1000
1045
  end
1001
1046
 
1047
+ # A configuration for logging events.
1048
+ #
1049
+ # @note When making an API call, you may pass LogConfiguration
1050
+ # data as a hash:
1051
+ #
1052
+ # {
1053
+ # enabled: false,
1054
+ # }
1055
+ #
1056
+ # @!attribute [rw] enabled
1057
+ # Indicates whether logging is enabled.
1058
+ # @return [Boolean]
1059
+ #
1060
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/LogConfiguration AWS API Documentation
1061
+ #
1062
+ class LogConfiguration < Struct.new(
1063
+ :enabled)
1064
+ include Aws::Structure
1065
+ end
1066
+
1067
+ # A collection of log configurations.
1068
+ #
1069
+ # @note When making an API call, you may pass LogConfigurations
1070
+ # data as a hash:
1071
+ #
1072
+ # {
1073
+ # cloudwatch: {
1074
+ # enabled: false,
1075
+ # },
1076
+ # }
1077
+ #
1078
+ # @!attribute [rw] cloudwatch
1079
+ # Parameters for publishing logs to Amazon CloudWatch Logs.
1080
+ # @return [Types::LogConfiguration]
1081
+ #
1082
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/LogConfigurations AWS API Documentation
1083
+ #
1084
+ class LogConfigurations < Struct.new(
1085
+ :cloudwatch)
1086
+ include Aws::Structure
1087
+ end
1088
+
1002
1089
  # Member configuration properties.
1003
1090
  #
1004
1091
  # @!attribute [rw] network_id
@@ -1022,6 +1109,11 @@ module Aws::ManagedBlockchain
1022
1109
  # the Managed Blockchain network uses.
1023
1110
  # @return [Types::MemberFrameworkAttributes]
1024
1111
  #
1112
+ # @!attribute [rw] log_publishing_configuration
1113
+ # Configuration properties for logging events associated with a
1114
+ # member.
1115
+ # @return [Types::MemberLogPublishingConfiguration]
1116
+ #
1025
1117
  # @!attribute [rw] status
1026
1118
  # The status of a member.
1027
1119
  #
@@ -1057,6 +1149,7 @@ module Aws::ManagedBlockchain
1057
1149
  :name,
1058
1150
  :description,
1059
1151
  :framework_attributes,
1152
+ :log_publishing_configuration,
1060
1153
  :status,
1061
1154
  :creation_date)
1062
1155
  include Aws::Structure
@@ -1076,6 +1169,15 @@ module Aws::ManagedBlockchain
1076
1169
  # admin_password: "PasswordString", # required
1077
1170
  # },
1078
1171
  # },
1172
+ # log_publishing_configuration: {
1173
+ # fabric: {
1174
+ # ca_logs: {
1175
+ # cloudwatch: {
1176
+ # enabled: false,
1177
+ # },
1178
+ # },
1179
+ # },
1180
+ # },
1079
1181
  # }
1080
1182
  #
1081
1183
  # @!attribute [rw] name
@@ -1091,12 +1193,16 @@ module Aws::ManagedBlockchain
1091
1193
  # member.
1092
1194
  # @return [Types::MemberFrameworkConfiguration]
1093
1195
  #
1196
+ # @!attribute [rw] log_publishing_configuration
1197
+ # @return [Types::MemberLogPublishingConfiguration]
1198
+ #
1094
1199
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/MemberConfiguration AWS API Documentation
1095
1200
  #
1096
1201
  class MemberConfiguration < Struct.new(
1097
1202
  :name,
1098
1203
  :description,
1099
- :framework_configuration)
1204
+ :framework_configuration,
1205
+ :log_publishing_configuration)
1100
1206
  include Aws::Structure
1101
1207
  end
1102
1208
 
@@ -1151,6 +1257,35 @@ module Aws::ManagedBlockchain
1151
1257
  include Aws::Structure
1152
1258
  end
1153
1259
 
1260
+ # Configuration properties for logging events associated with a member
1261
+ # of a Managed Blockchain network using the Hyperledger Fabric
1262
+ # framework.
1263
+ #
1264
+ # @note When making an API call, you may pass MemberFabricLogPublishingConfiguration
1265
+ # data as a hash:
1266
+ #
1267
+ # {
1268
+ # ca_logs: {
1269
+ # cloudwatch: {
1270
+ # enabled: false,
1271
+ # },
1272
+ # },
1273
+ # }
1274
+ #
1275
+ # @!attribute [rw] ca_logs
1276
+ # Configuration properties for logging events associated with a
1277
+ # member's Certificate Authority (CA). CA logs help you determine
1278
+ # when a member in your account joins the network, or when new peers
1279
+ # register with a member CA.
1280
+ # @return [Types::LogConfigurations]
1281
+ #
1282
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/MemberFabricLogPublishingConfiguration AWS API Documentation
1283
+ #
1284
+ class MemberFabricLogPublishingConfiguration < Struct.new(
1285
+ :ca_logs)
1286
+ include Aws::Structure
1287
+ end
1288
+
1154
1289
  # Attributes relevant to a member for the blockchain framework that the
1155
1290
  # Managed Blockchain network uses.
1156
1291
  #
@@ -1191,6 +1326,35 @@ module Aws::ManagedBlockchain
1191
1326
  include Aws::Structure
1192
1327
  end
1193
1328
 
1329
+ # Configuration properties for logging events associated with a member
1330
+ # of a Managed Blockchain network.
1331
+ #
1332
+ # @note When making an API call, you may pass MemberLogPublishingConfiguration
1333
+ # data as a hash:
1334
+ #
1335
+ # {
1336
+ # fabric: {
1337
+ # ca_logs: {
1338
+ # cloudwatch: {
1339
+ # enabled: false,
1340
+ # },
1341
+ # },
1342
+ # },
1343
+ # }
1344
+ #
1345
+ # @!attribute [rw] fabric
1346
+ # Configuration properties for logging events associated with a member
1347
+ # of a Managed Blockchain network using the Hyperledger Fabric
1348
+ # framework.
1349
+ # @return [Types::MemberFabricLogPublishingConfiguration]
1350
+ #
1351
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/MemberLogPublishingConfiguration AWS API Documentation
1352
+ #
1353
+ class MemberLogPublishingConfiguration < Struct.new(
1354
+ :fabric)
1355
+ include Aws::Structure
1356
+ end
1357
+
1194
1358
  # A summary of configuration properties for a member.
1195
1359
  #
1196
1360
  # @!attribute [rw] id
@@ -1323,7 +1487,7 @@ module Aws::ManagedBlockchain
1323
1487
  #
1324
1488
  #
1325
1489
  #
1326
- # [1]: https://aws.amazon.com/managed-blockchain/pricing/
1490
+ # [1]: http://aws.amazon.com/managed-blockchain/pricing/
1327
1491
  # @return [String]
1328
1492
  #
1329
1493
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/NetworkFabricAttributes AWS API Documentation
@@ -1349,7 +1513,7 @@ module Aws::ManagedBlockchain
1349
1513
  #
1350
1514
  #
1351
1515
  #
1352
- # [1]: https://aws.amazon.com/managed-blockchain/pricing/
1516
+ # [1]: http://aws.amazon.com/managed-blockchain/pricing/
1353
1517
  # @return [String]
1354
1518
  #
1355
1519
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/NetworkFabricConfiguration AWS API Documentation
@@ -1467,6 +1631,9 @@ module Aws::ManagedBlockchain
1467
1631
  # Attributes of the blockchain framework being used.
1468
1632
  # @return [Types::NodeFrameworkAttributes]
1469
1633
  #
1634
+ # @!attribute [rw] log_publishing_configuration
1635
+ # @return [Types::NodeLogPublishingConfiguration]
1636
+ #
1470
1637
  # @!attribute [rw] status
1471
1638
  # The status of the node.
1472
1639
  # @return [String]
@@ -1484,6 +1651,7 @@ module Aws::ManagedBlockchain
1484
1651
  :instance_type,
1485
1652
  :availability_zone,
1486
1653
  :framework_attributes,
1654
+ :log_publishing_configuration,
1487
1655
  :status,
1488
1656
  :creation_date)
1489
1657
  include Aws::Structure
@@ -1497,6 +1665,20 @@ module Aws::ManagedBlockchain
1497
1665
  # {
1498
1666
  # instance_type: "InstanceTypeString", # required
1499
1667
  # availability_zone: "AvailabilityZoneString", # required
1668
+ # log_publishing_configuration: {
1669
+ # fabric: {
1670
+ # chaincode_logs: {
1671
+ # cloudwatch: {
1672
+ # enabled: false,
1673
+ # },
1674
+ # },
1675
+ # peer_logs: {
1676
+ # cloudwatch: {
1677
+ # enabled: false,
1678
+ # },
1679
+ # },
1680
+ # },
1681
+ # },
1500
1682
  # }
1501
1683
  #
1502
1684
  # @!attribute [rw] instance_type
@@ -1507,11 +1689,15 @@ module Aws::ManagedBlockchain
1507
1689
  # The Availability Zone in which the node exists.
1508
1690
  # @return [String]
1509
1691
  #
1692
+ # @!attribute [rw] log_publishing_configuration
1693
+ # @return [Types::NodeLogPublishingConfiguration]
1694
+ #
1510
1695
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/NodeConfiguration AWS API Documentation
1511
1696
  #
1512
1697
  class NodeConfiguration < Struct.new(
1513
1698
  :instance_type,
1514
- :availability_zone)
1699
+ :availability_zone,
1700
+ :log_publishing_configuration)
1515
1701
  include Aws::Structure
1516
1702
  end
1517
1703
 
@@ -1536,6 +1722,49 @@ module Aws::ManagedBlockchain
1536
1722
  include Aws::Structure
1537
1723
  end
1538
1724
 
1725
+ # Configuration properties for logging events associated with a peer
1726
+ # node owned by a member in a Managed Blockchain network.
1727
+ #
1728
+ # @note When making an API call, you may pass NodeFabricLogPublishingConfiguration
1729
+ # data as a hash:
1730
+ #
1731
+ # {
1732
+ # chaincode_logs: {
1733
+ # cloudwatch: {
1734
+ # enabled: false,
1735
+ # },
1736
+ # },
1737
+ # peer_logs: {
1738
+ # cloudwatch: {
1739
+ # enabled: false,
1740
+ # },
1741
+ # },
1742
+ # }
1743
+ #
1744
+ # @!attribute [rw] chaincode_logs
1745
+ # Configuration properties for logging events associated with
1746
+ # chaincode execution on a peer node. Chaincode logs contain the
1747
+ # results of instantiating, invoking, and querying the chaincode. A
1748
+ # peer can run multiple instances of chaincode. When enabled, a log
1749
+ # stream is created for all chaincodes, with an individual log stream
1750
+ # for each chaincode.
1751
+ # @return [Types::LogConfigurations]
1752
+ #
1753
+ # @!attribute [rw] peer_logs
1754
+ # Configuration properties for a peer node log. Peer node logs contain
1755
+ # messages generated when your client submits transaction proposals to
1756
+ # peer nodes, requests to join channels, enrolls an admin peer, and
1757
+ # lists the chaincode instances on a peer node.
1758
+ # @return [Types::LogConfigurations]
1759
+ #
1760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/NodeFabricLogPublishingConfiguration AWS API Documentation
1761
+ #
1762
+ class NodeFabricLogPublishingConfiguration < Struct.new(
1763
+ :chaincode_logs,
1764
+ :peer_logs)
1765
+ include Aws::Structure
1766
+ end
1767
+
1539
1768
  # Attributes relevant to a peer node on a Managed Blockchain network for
1540
1769
  # the blockchain framework that the network uses.
1541
1770
  #
@@ -1551,6 +1780,40 @@ module Aws::ManagedBlockchain
1551
1780
  include Aws::Structure
1552
1781
  end
1553
1782
 
1783
+ # Configuration properties for logging events associated with a peer
1784
+ # node owned by a member in a Managed Blockchain network.
1785
+ #
1786
+ # @note When making an API call, you may pass NodeLogPublishingConfiguration
1787
+ # data as a hash:
1788
+ #
1789
+ # {
1790
+ # fabric: {
1791
+ # chaincode_logs: {
1792
+ # cloudwatch: {
1793
+ # enabled: false,
1794
+ # },
1795
+ # },
1796
+ # peer_logs: {
1797
+ # cloudwatch: {
1798
+ # enabled: false,
1799
+ # },
1800
+ # },
1801
+ # },
1802
+ # }
1803
+ #
1804
+ # @!attribute [rw] fabric
1805
+ # Configuration properties for logging events associated with a node
1806
+ # that is owned by a member of a Managed Blockchain network using the
1807
+ # Hyperledger Fabric framework.
1808
+ # @return [Types::NodeFabricLogPublishingConfiguration]
1809
+ #
1810
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/NodeLogPublishingConfiguration AWS API Documentation
1811
+ #
1812
+ class NodeLogPublishingConfiguration < Struct.new(
1813
+ :fabric)
1814
+ include Aws::Structure
1815
+ end
1816
+
1554
1817
  # A summary of configuration properties for a peer node.
1555
1818
  #
1556
1819
  # @!attribute [rw] id
@@ -1630,7 +1893,8 @@ module Aws::ManagedBlockchain
1630
1893
  #
1631
1894
  # * `ACTION_FAILED` - One or more of the specified `ProposalActions`
1632
1895
  # in a proposal that was approved could not be completed because of
1633
- # an error.
1896
+ # an error. The `ACTION_FAILED` status occurs even if only one
1897
+ # ProposalAction fails and other actions are successful.
1634
1898
  # @return [String]
1635
1899
  #
1636
1900
  # @!attribute [rw] creation_date
@@ -1878,6 +2142,113 @@ module Aws::ManagedBlockchain
1878
2142
  include Aws::Structure
1879
2143
  end
1880
2144
 
2145
+ # The request or operation could not be performed because a service is
2146
+ # throttling requests. The most common source of throttling errors is
2147
+ # launching EC2 instances such that your service limit for EC2 instances
2148
+ # is exceeded. Request a limit increase or delete unused resources if
2149
+ # possible.
2150
+ #
2151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/ThrottlingException AWS API Documentation
2152
+ #
2153
+ class ThrottlingException < Aws::EmptyStructure; end
2154
+
2155
+ # @note When making an API call, you may pass UpdateMemberInput
2156
+ # data as a hash:
2157
+ #
2158
+ # {
2159
+ # network_id: "ResourceIdString", # required
2160
+ # member_id: "ResourceIdString", # required
2161
+ # log_publishing_configuration: {
2162
+ # fabric: {
2163
+ # ca_logs: {
2164
+ # cloudwatch: {
2165
+ # enabled: false,
2166
+ # },
2167
+ # },
2168
+ # },
2169
+ # },
2170
+ # }
2171
+ #
2172
+ # @!attribute [rw] network_id
2173
+ # The unique ID of the Managed Blockchain network to which the member
2174
+ # belongs.
2175
+ # @return [String]
2176
+ #
2177
+ # @!attribute [rw] member_id
2178
+ # The unique ID of the member.
2179
+ # @return [String]
2180
+ #
2181
+ # @!attribute [rw] log_publishing_configuration
2182
+ # Configuration properties for publishing to Amazon CloudWatch Logs.
2183
+ # @return [Types::MemberLogPublishingConfiguration]
2184
+ #
2185
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateMemberInput AWS API Documentation
2186
+ #
2187
+ class UpdateMemberInput < Struct.new(
2188
+ :network_id,
2189
+ :member_id,
2190
+ :log_publishing_configuration)
2191
+ include Aws::Structure
2192
+ end
2193
+
2194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateMemberOutput AWS API Documentation
2195
+ #
2196
+ class UpdateMemberOutput < Aws::EmptyStructure; end
2197
+
2198
+ # @note When making an API call, you may pass UpdateNodeInput
2199
+ # data as a hash:
2200
+ #
2201
+ # {
2202
+ # network_id: "ResourceIdString", # required
2203
+ # member_id: "ResourceIdString", # required
2204
+ # node_id: "ResourceIdString", # required
2205
+ # log_publishing_configuration: {
2206
+ # fabric: {
2207
+ # chaincode_logs: {
2208
+ # cloudwatch: {
2209
+ # enabled: false,
2210
+ # },
2211
+ # },
2212
+ # peer_logs: {
2213
+ # cloudwatch: {
2214
+ # enabled: false,
2215
+ # },
2216
+ # },
2217
+ # },
2218
+ # },
2219
+ # }
2220
+ #
2221
+ # @!attribute [rw] network_id
2222
+ # The unique ID of the Managed Blockchain network to which the node
2223
+ # belongs.
2224
+ # @return [String]
2225
+ #
2226
+ # @!attribute [rw] member_id
2227
+ # The unique ID of the member that owns the node.
2228
+ # @return [String]
2229
+ #
2230
+ # @!attribute [rw] node_id
2231
+ # The unique ID of the node.
2232
+ # @return [String]
2233
+ #
2234
+ # @!attribute [rw] log_publishing_configuration
2235
+ # Configuration properties for publishing to Amazon CloudWatch Logs.
2236
+ # @return [Types::NodeLogPublishingConfiguration]
2237
+ #
2238
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateNodeInput AWS API Documentation
2239
+ #
2240
+ class UpdateNodeInput < Struct.new(
2241
+ :network_id,
2242
+ :member_id,
2243
+ :node_id,
2244
+ :log_publishing_configuration)
2245
+ include Aws::Structure
2246
+ end
2247
+
2248
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateNodeOutput AWS API Documentation
2249
+ #
2250
+ class UpdateNodeOutput < Aws::EmptyStructure; end
2251
+
1881
2252
  # @note When making an API call, you may pass VoteOnProposalInput
1882
2253
  # data as a hash:
1883
2254
  #