blib/lib/Paws/ManagedBlockchain.pm untested

filter: Statementstmt 0.0% 0 / 82 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 29 Podpod 0.0% 0 / 28 totaltotal 0.0% 0 / 139 CC 1 SCAR 6.9
CC
1
Cov
0%
service
2.0
signing_name
2.0
version
2.0
CRAP 2.0
1 package Paws::ManagedBlockchain;
2 use Moose;
3 sub service { 'managedblockchain' }
4 sub signing_name { 'managedblockchain' }
5 sub version { '2018-09-24' }
6 sub flattened_arrays { 0 }
7 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 has retry => (is => 'ro', isa => 'HashRef', default => sub {
9 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 });
11 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12 ] });
13  
14 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 sub CreateMember {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::CreateMember', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub CreateNetwork {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::CreateNetwork', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub CreateNode {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::CreateNode', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub CreateProposal {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::CreateProposal', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub DeleteMember {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::DeleteMember', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub DeleteNode {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::DeleteNode', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub GetMember {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::GetMember', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub GetNetwork {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::GetNetwork', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub GetNode {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::GetNode', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62 sub GetProposal {
63 my $self = shift;
64 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::GetProposal', @_);
65 return $self->caller->do_call($self, $call_object);
66 }
67 sub ListInvitations {
68 my $self = shift;
69 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListInvitations', @_);
70 return $self->caller->do_call($self, $call_object);
71 }
72 sub ListMembers {
73 my $self = shift;
74 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListMembers', @_);
75 return $self->caller->do_call($self, $call_object);
76 }
77 sub ListNetworks {
78 my $self = shift;
79 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListNetworks', @_);
80 return $self->caller->do_call($self, $call_object);
81 }
82 sub ListNodes {
83 my $self = shift;
84 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListNodes', @_);
85 return $self->caller->do_call($self, $call_object);
86 }
87 sub ListProposals {
88 my $self = shift;
89 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListProposals', @_);
90 return $self->caller->do_call($self, $call_object);
91 }
92 sub ListProposalVotes {
93 my $self = shift;
94 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListProposalVotes', @_);
95 return $self->caller->do_call($self, $call_object);
96 }
97 sub ListTagsForResource {
98 my $self = shift;
99 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::ListTagsForResource', @_);
100 return $self->caller->do_call($self, $call_object);
101 }
102 sub RejectInvitation {
103 my $self = shift;
104 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::RejectInvitation', @_);
105 return $self->caller->do_call($self, $call_object);
106 }
107 sub TagResource {
108 my $self = shift;
109 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::TagResource', @_);
110 return $self->caller->do_call($self, $call_object);
111 }
112 sub UntagResource {
113 my $self = shift;
114 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::UntagResource', @_);
115 return $self->caller->do_call($self, $call_object);
116 }
117 sub UpdateMember {
118 my $self = shift;
119 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::UpdateMember', @_);
120 return $self->caller->do_call($self, $call_object);
121 }
122 sub UpdateNode {
123 my $self = shift;
124 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::UpdateNode', @_);
125 return $self->caller->do_call($self, $call_object);
126 }
127 sub VoteOnProposal {
128 my $self = shift;
129 my $call_object = $self->new_with_coercions('Paws::ManagedBlockchain::VoteOnProposal', @_);
130 return $self->caller->do_call($self, $call_object);
131 }
132
133  
134  
135 sub operations { qw/CreateMember CreateNetwork CreateNode CreateProposal DeleteMember DeleteNode GetMember GetNetwork GetNode GetProposal ListInvitations ListMembers ListNetworks ListNodes ListProposals ListProposalVotes ListTagsForResource RejectInvitation TagResource UntagResource UpdateMember UpdateNode VoteOnProposal / }
136  
137 1;
138  
139 ### main pod documentation begin ###
140  
141 =head1 NAME
142  
143 Paws::ManagedBlockchain - Perl Interface to AWS Amazon Managed Blockchain
144  
145 =head1 SYNOPSIS
146  
147 use Paws;
148  
149 my $obj = Paws->service('ManagedBlockchain');
150 my $res = $obj->Method(
151 Arg1 => $val1,
152 Arg2 => [ 'V1', 'V2' ],
153 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
154 # of the arguments type
155 Arg3 => { Att1 => 'Val1' },
156 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
157 # the constructor of the arguments type
158 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
159 );
160  
161 =head1 DESCRIPTION
162  
163 Amazon Managed Blockchain is a fully managed service for creating and
164 managing blockchain networks using open-source frameworks. Blockchain
165 allows you to build applications where multiple parties can securely
166 and transparently run transactions and share data without the need for
167 a trusted, central authority.
168  
169 Managed Blockchain supports the Hyperledger Fabric and Ethereum
170 open-source frameworks. Because of fundamental differences between the
171 frameworks, some API actions or data types may only apply in the
172 context of one framework and not the other. For example, actions
173 related to Hyperledger Fabric network members such as C<CreateMember>
174 and C<DeleteMember> do not apply to Ethereum.
175  
176 The description for each action indicates the framework or frameworks
177 to which it applies. Data types and properties that apply only in the
178 context of a particular framework are similarly indicated.
179  
180 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24>
181  
182  
183 =head1 METHODS
184  
185 =head2 CreateMember
186  
187 =over
188  
189 =item ClientRequestToken => Str
190  
191 =item InvitationId => Str
192  
193 =item MemberConfiguration => L<Paws::ManagedBlockchain::MemberConfiguration>
194  
195 =item NetworkId => Str
196  
197  
198 =back
199  
200 Each argument is described in detail in: L<Paws::ManagedBlockchain::CreateMember>
201  
202 Returns: a L<Paws::ManagedBlockchain::CreateMemberOutput> instance
203  
204 Creates a member within a Managed Blockchain network.
205  
206 Applies only to Hyperledger Fabric.
207  
208  
209 =head2 CreateNetwork
210  
211 =over
212  
213 =item ClientRequestToken => Str
214  
215 =item Framework => Str
216  
217 =item FrameworkVersion => Str
218  
219 =item MemberConfiguration => L<Paws::ManagedBlockchain::MemberConfiguration>
220  
221 =item Name => Str
222  
223 =item VotingPolicy => L<Paws::ManagedBlockchain::VotingPolicy>
224  
225 =item [Description => Str]
226  
227 =item [FrameworkConfiguration => L<Paws::ManagedBlockchain::NetworkFrameworkConfiguration>]
228  
229 =item [Tags => L<Paws::ManagedBlockchain::InputTagMap>]
230  
231  
232 =back
233  
234 Each argument is described in detail in: L<Paws::ManagedBlockchain::CreateNetwork>
235  
236 Returns: a L<Paws::ManagedBlockchain::CreateNetworkOutput> instance
237  
238 Creates a new blockchain network using Amazon Managed Blockchain.
239  
240 Applies only to Hyperledger Fabric.
241  
242  
243 =head2 CreateNode
244  
245 =over
246  
247 =item ClientRequestToken => Str
248  
249 =item NetworkId => Str
250  
251 =item NodeConfiguration => L<Paws::ManagedBlockchain::NodeConfiguration>
252  
253 =item [MemberId => Str]
254  
255 =item [Tags => L<Paws::ManagedBlockchain::InputTagMap>]
256  
257  
258 =back
259  
260 Each argument is described in detail in: L<Paws::ManagedBlockchain::CreateNode>
261  
262 Returns: a L<Paws::ManagedBlockchain::CreateNodeOutput> instance
263  
264 Creates a node on the specified blockchain network.
265  
266 Applies to Hyperledger Fabric and Ethereum.
267  
268  
269 =head2 CreateProposal
270  
271 =over
272  
273 =item Actions => L<Paws::ManagedBlockchain::ProposalActions>
274  
275 =item ClientRequestToken => Str
276  
277 =item MemberId => Str
278  
279 =item NetworkId => Str
280  
281 =item [Description => Str]
282  
283 =item [Tags => L<Paws::ManagedBlockchain::InputTagMap>]
284  
285  
286 =back
287  
288 Each argument is described in detail in: L<Paws::ManagedBlockchain::CreateProposal>
289  
290 Returns: a L<Paws::ManagedBlockchain::CreateProposalOutput> instance
291  
292 Creates a proposal for a change to the network that other members of
293 the network can vote on, for example, a proposal to add a new member to
294 the network. Any member can create a proposal.
295  
296 Applies only to Hyperledger Fabric.
297  
298  
299 =head2 DeleteMember
300  
301 =over
302  
303 =item MemberId => Str
304  
305 =item NetworkId => Str
306  
307  
308 =back
309  
310 Each argument is described in detail in: L<Paws::ManagedBlockchain::DeleteMember>
311  
312 Returns: a L<Paws::ManagedBlockchain::DeleteMemberOutput> instance
313  
314 Deletes a member. Deleting a member removes the member and all
315 associated resources from the network. C<DeleteMember> can only be
316 called for a specified C<MemberId> if the principal performing the
317 action is associated with the AWS account that owns the member. In all
318 other cases, the C<DeleteMember> action is carried out as the result of
319 an approved proposal to remove a member. If C<MemberId> is the last
320 member in a network specified by the last AWS account, the network is
321 deleted also.
322  
323 Applies only to Hyperledger Fabric.
324  
325  
326 =head2 DeleteNode
327  
328 =over
329  
330 =item NetworkId => Str
331  
332 =item NodeId => Str
333  
334 =item [MemberId => Str]
335  
336  
337 =back
338  
339 Each argument is described in detail in: L<Paws::ManagedBlockchain::DeleteNode>
340  
341 Returns: a L<Paws::ManagedBlockchain::DeleteNodeOutput> instance
342  
343 Deletes a node that your AWS account owns. All data on the node is lost
344 and cannot be recovered.
345  
346 Applies to Hyperledger Fabric and Ethereum.
347  
348  
349 =head2 GetMember
350  
351 =over
352  
353 =item MemberId => Str
354  
355 =item NetworkId => Str
356  
357  
358 =back
359  
360 Each argument is described in detail in: L<Paws::ManagedBlockchain::GetMember>
361  
362 Returns: a L<Paws::ManagedBlockchain::GetMemberOutput> instance
363  
364 Returns detailed information about a member.
365  
366 Applies only to Hyperledger Fabric.
367  
368  
369 =head2 GetNetwork
370  
371 =over
372  
373 =item NetworkId => Str
374  
375  
376 =back
377  
378 Each argument is described in detail in: L<Paws::ManagedBlockchain::GetNetwork>
379  
380 Returns: a L<Paws::ManagedBlockchain::GetNetworkOutput> instance
381  
382 Returns detailed information about a network.
383  
384 Applies to Hyperledger Fabric and Ethereum.
385  
386  
387 =head2 GetNode
388  
389 =over
390  
391 =item NetworkId => Str
392  
393 =item NodeId => Str
394  
395 =item [MemberId => Str]
396  
397  
398 =back
399  
400 Each argument is described in detail in: L<Paws::ManagedBlockchain::GetNode>
401  
402 Returns: a L<Paws::ManagedBlockchain::GetNodeOutput> instance
403  
404 Returns detailed information about a node.
405  
406 Applies to Hyperledger Fabric and Ethereum.
407  
408  
409 =head2 GetProposal
410  
411 =over
412  
413 =item NetworkId => Str
414  
415 =item ProposalId => Str
416  
417  
418 =back
419  
420 Each argument is described in detail in: L<Paws::ManagedBlockchain::GetProposal>
421  
422 Returns: a L<Paws::ManagedBlockchain::GetProposalOutput> instance
423  
424 Returns detailed information about a proposal.
425  
426 Applies only to Hyperledger Fabric.
427  
428  
429 =head2 ListInvitations
430  
431 =over
432  
433 =item [MaxResults => Int]
434  
435 =item [NextToken => Str]
436  
437  
438 =back
439  
440 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListInvitations>
441  
442 Returns: a L<Paws::ManagedBlockchain::ListInvitationsOutput> instance
443  
444 Returns a list of all invitations for the current AWS account.
445  
446 Applies only to Hyperledger Fabric.
447  
448  
449 =head2 ListMembers
450  
451 =over
452  
453 =item NetworkId => Str
454  
455 =item [IsOwned => Bool]
456  
457 =item [MaxResults => Int]
458  
459 =item [Name => Str]
460  
461 =item [NextToken => Str]
462  
463 =item [Status => Str]
464  
465  
466 =back
467  
468 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListMembers>
469  
470 Returns: a L<Paws::ManagedBlockchain::ListMembersOutput> instance
471  
472 Returns a list of the members in a network and properties of their
473 configurations.
474  
475 Applies only to Hyperledger Fabric.
476  
477  
478 =head2 ListNetworks
479  
480 =over
481  
482 =item [Framework => Str]
483  
484 =item [MaxResults => Int]
485  
486 =item [Name => Str]
487  
488 =item [NextToken => Str]
489  
490 =item [Status => Str]
491  
492  
493 =back
494  
495 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListNetworks>
496  
497 Returns: a L<Paws::ManagedBlockchain::ListNetworksOutput> instance
498  
499 Returns information about the networks in which the current AWS account
500 participates.
501  
502 Applies to Hyperledger Fabric and Ethereum.
503  
504  
505 =head2 ListNodes
506  
507 =over
508  
509 =item NetworkId => Str
510  
511 =item [MaxResults => Int]
512  
513 =item [MemberId => Str]
514  
515 =item [NextToken => Str]
516  
517 =item [Status => Str]
518  
519  
520 =back
521  
522 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListNodes>
523  
524 Returns: a L<Paws::ManagedBlockchain::ListNodesOutput> instance
525  
526 Returns information about the nodes within a network.
527  
528 Applies to Hyperledger Fabric and Ethereum.
529  
530  
531 =head2 ListProposals
532  
533 =over
534  
535 =item NetworkId => Str
536  
537 =item [MaxResults => Int]
538  
539 =item [NextToken => Str]
540  
541  
542 =back
543  
544 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListProposals>
545  
546 Returns: a L<Paws::ManagedBlockchain::ListProposalsOutput> instance
547  
548 Returns a list of proposals for the network.
549  
550 Applies only to Hyperledger Fabric.
551  
552  
553 =head2 ListProposalVotes
554  
555 =over
556  
557 =item NetworkId => Str
558  
559 =item ProposalId => Str
560  
561 =item [MaxResults => Int]
562  
563 =item [NextToken => Str]
564  
565  
566 =back
567  
568 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListProposalVotes>
569  
570 Returns: a L<Paws::ManagedBlockchain::ListProposalVotesOutput> instance
571  
572 Returns the list of votes for a specified proposal, including the value
573 of each vote and the unique identifier of the member that cast the
574 vote.
575  
576 Applies only to Hyperledger Fabric.
577  
578  
579 =head2 ListTagsForResource
580  
581 =over
582  
583 =item ResourceArn => Str
584  
585  
586 =back
587  
588 Each argument is described in detail in: L<Paws::ManagedBlockchain::ListTagsForResource>
589  
590 Returns: a L<Paws::ManagedBlockchain::ListTagsForResourceResponse> instance
591  
592 Returns a list of tags for the specified resource. Each tag consists of
593 a key and optional value.
594  
595 For more information about tags, see Tagging Resources
596 (https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html)
597 in the I<Amazon Managed Blockchain Ethereum Developer Guide>, or
598 Tagging Resources
599 (https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html)
600 in the I<Amazon Managed Blockchain Hyperledger Fabric Developer Guide>.
601  
602  
603 =head2 RejectInvitation
604  
605 =over
606  
607 =item InvitationId => Str
608  
609  
610 =back
611  
612 Each argument is described in detail in: L<Paws::ManagedBlockchain::RejectInvitation>
613  
614 Returns: a L<Paws::ManagedBlockchain::RejectInvitationOutput> instance
615  
616 Rejects an invitation to join a network. This action can be called by a
617 principal in an AWS account that has received an invitation to create a
618 member and join a network.
619  
620 Applies only to Hyperledger Fabric.
621  
622  
623 =head2 TagResource
624  
625 =over
626  
627 =item ResourceArn => Str
628  
629 =item Tags => L<Paws::ManagedBlockchain::InputTagMap>
630  
631  
632 =back
633  
634 Each argument is described in detail in: L<Paws::ManagedBlockchain::TagResource>
635  
636 Returns: a L<Paws::ManagedBlockchain::TagResourceResponse> instance
637  
638 Adds or overwrites the specified tags for the specified Amazon Managed
639 Blockchain resource. Each tag consists of a key and optional value.
640  
641 When you specify a tag key that already exists, the tag value is
642 overwritten with the new value. Use C<UntagResource> to remove tag
643 keys.
644  
645 A resource can have up to 50 tags. If you try to create more than 50
646 tags for a resource, your request fails and returns an error.
647  
648 For more information about tags, see Tagging Resources
649 (https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html)
650 in the I<Amazon Managed Blockchain Ethereum Developer Guide>, or
651 Tagging Resources
652 (https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html)
653 in the I<Amazon Managed Blockchain Hyperledger Fabric Developer Guide>.
654  
655  
656 =head2 UntagResource
657  
658 =over
659  
660 =item ResourceArn => Str
661  
662 =item TagKeys => ArrayRef[Str|Undef]
663  
664  
665 =back
666  
667 Each argument is described in detail in: L<Paws::ManagedBlockchain::UntagResource>
668  
669 Returns: a L<Paws::ManagedBlockchain::UntagResourceResponse> instance
670  
671 Removes the specified tags from the Amazon Managed Blockchain resource.
672  
673 For more information about tags, see Tagging Resources
674 (https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html)
675 in the I<Amazon Managed Blockchain Ethereum Developer Guide>, or
676 Tagging Resources
677 (https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html)
678 in the I<Amazon Managed Blockchain Hyperledger Fabric Developer Guide>.
679  
680  
681 =head2 UpdateMember
682  
683 =over
684  
685 =item MemberId => Str
686  
687 =item NetworkId => Str
688  
689 =item [LogPublishingConfiguration => L<Paws::ManagedBlockchain::MemberLogPublishingConfiguration>]
690  
691  
692 =back
693  
694 Each argument is described in detail in: L<Paws::ManagedBlockchain::UpdateMember>
695  
696 Returns: a L<Paws::ManagedBlockchain::UpdateMemberOutput> instance
697  
698 Updates a member configuration with new parameters.
699  
700 Applies only to Hyperledger Fabric.
701  
702  
703 =head2 UpdateNode
704  
705 =over
706  
707 =item NetworkId => Str
708  
709 =item NodeId => Str
710  
711 =item [LogPublishingConfiguration => L<Paws::ManagedBlockchain::NodeLogPublishingConfiguration>]
712  
713 =item [MemberId => Str]
714  
715  
716 =back
717  
718 Each argument is described in detail in: L<Paws::ManagedBlockchain::UpdateNode>
719  
720 Returns: a L<Paws::ManagedBlockchain::UpdateNodeOutput> instance
721  
722 Updates a node configuration with new parameters.
723  
724 Applies only to Hyperledger Fabric.
725  
726  
727 =head2 VoteOnProposal
728  
729 =over
730  
731 =item NetworkId => Str
732  
733 =item ProposalId => Str
734  
735 =item Vote => Str
736  
737 =item VoterMemberId => Str
738  
739  
740 =back
741  
742 Each argument is described in detail in: L<Paws::ManagedBlockchain::VoteOnProposal>
743  
744 Returns: a L<Paws::ManagedBlockchain::VoteOnProposalOutput> instance
745  
746 Casts a vote for a specified C<ProposalId> on behalf of a member. The
747 member to vote as, specified by C<VoterMemberId>, must be in the same
748 AWS account as the principal that calls the action.
749  
750 Applies only to Hyperledger Fabric.
751  
752  
753  
754  
755 =head1 PAGINATORS
756  
757 Paginator methods are helpers that repetively call methods that return partial results
758  
759  
760  
761  
762 =head1 SEE ALSO
763  
764 This service class forms part of L<Paws>
765  
766 =head1 BUGS and CONTRIBUTIONS
767  
768 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
769  
770 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
771  
772 =cut
773