| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::ManagedBlockchain::ApprovalThresholdPolicy; | ||
| 3 | use Moose; | ||
| 4 | has ProposalDurationInHours => (is => 'ro', isa => 'Int'); | ||
| 5 | has ThresholdComparator => (is => 'ro', isa => 'Str'); | ||
| 6 | has ThresholdPercentage => (is => 'ro', isa => 'Int'); | ||
| 7 | |||
| 8 | 1; | ||
| 9 | |||
| 10 | ### main pod documentation begin ### | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Paws::ManagedBlockchain::ApprovalThresholdPolicy | ||
| 15 | |||
| 16 | =head1 USAGE | ||
| 17 | |||
| 18 | This class represents one of two things: | ||
| 19 | |||
| 20 | =head3 Arguments in a call to a service | ||
| 21 | |||
| 22 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 23 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 24 | |||
| 25 | As an example, if Att1 is expected to be a Paws::ManagedBlockchain::ApprovalThresholdPolicy object: | ||
| 26 | |||
| 27 | $service_obj->Method(Att1 => { ProposalDurationInHours => $value, ..., ThresholdPercentage => $value }); | ||
| 28 | |||
| 29 | =head3 Results returned from an API call | ||
| 30 | |||
| 31 | Use accessors for each attribute. If Att1 is expected to be an Paws::ManagedBlockchain::ApprovalThresholdPolicy object: | ||
| 32 | |||
| 33 | $result = $service_obj->Method(...); | ||
| 34 | $result->Att1->ProposalDurationInHours | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | A policy type that defines the voting rules for the network. The rules | ||
| 39 | decide if a proposal is approved. Approval may be based on criteria | ||
| 40 | such as the percentage of C<YES> votes and the duration of the | ||
| 41 | proposal. The policy applies to all proposals and is specified when the | ||
| 42 | network is created. | ||
| 43 | |||
| 44 | Applies only to Hyperledger Fabric. | ||
| 45 | |||
| 46 | =head1 ATTRIBUTES | ||
| 47 | |||
| 48 | |||
| 49 | =head2 ProposalDurationInHours => Int | ||
| 50 | |||
| 51 | The duration from the time that a proposal is created until it expires. | ||
| 52 | If members cast neither the required number of C<YES> votes to approve | ||
| 53 | the proposal nor the number of C<NO> votes required to reject it before | ||
| 54 | the duration expires, the proposal is C<EXPIRED> and C<ProposalActions> | ||
| 55 | are not carried out. | ||
| 56 | |||
| 57 | |||
| 58 | =head2 ThresholdComparator => Str | ||
| 59 | |||
| 60 | Determines whether the vote percentage must be greater than the | ||
| 61 | C<ThresholdPercentage> or must be greater than or equal to the | ||
| 62 | C<ThreholdPercentage> to be approved. | ||
| 63 | |||
| 64 | |||
| 65 | =head2 ThresholdPercentage => Int | ||
| 66 | |||
| 67 | The percentage of votes among all members that must be C<YES> for a | ||
| 68 | proposal to be approved. For example, a C<ThresholdPercentage> value of | ||
| 69 | C<50> indicates 50%. The C<ThresholdComparator> determines the precise | ||
| 70 | comparison. If a C<ThresholdPercentage> value of C<50> is specified on | ||
| 71 | a network with 10 members, along with a C<ThresholdComparator> value of | ||
| 72 | C<GREATER_THAN>, this indicates that 6 C<YES> votes are required for | ||
| 73 | the proposal to be approved. | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head1 SEE ALSO | ||
| 78 | |||
| 79 | This class forms part of L<Paws>, describing an object used in L<Paws::ManagedBlockchain> | ||
| 80 | |||
| 81 | =head1 BUGS and CONTRIBUTIONS | ||
| 82 | |||
| 83 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 84 | |||
| 85 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 86 | |||
| 87 | =cut | ||
| 88 |