Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ProposalSummary = ProposalSummary' {}
- newProposalSummary :: ProposalSummary
- proposalSummary_arn :: Lens' ProposalSummary (Maybe Text)
- proposalSummary_creationDate :: Lens' ProposalSummary (Maybe UTCTime)
- proposalSummary_description :: Lens' ProposalSummary (Maybe Text)
- proposalSummary_expirationDate :: Lens' ProposalSummary (Maybe UTCTime)
- proposalSummary_proposalId :: Lens' ProposalSummary (Maybe Text)
- proposalSummary_proposedByMemberId :: Lens' ProposalSummary (Maybe Text)
- proposalSummary_proposedByMemberName :: Lens' ProposalSummary (Maybe Text)
- proposalSummary_status :: Lens' ProposalSummary (Maybe ProposalStatus)
Documentation
data ProposalSummary Source #
Properties of a proposal.
Applies only to Hyperledger Fabric.
See: newProposalSummary
smart constructor.
ProposalSummary' | |
|
Instances
newProposalSummary :: ProposalSummary Source #
Create a value of ProposalSummary
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:arn:ProposalSummary'
, proposalSummary_arn
- The Amazon Resource Name (ARN) of the proposal. For more information
about ARNs and their format, see
Amazon Resource Names (ARNs)
in the Amazon Web Services General Reference.
$sel:creationDate:ProposalSummary'
, proposalSummary_creationDate
- The date and time that the proposal was created.
$sel:description:ProposalSummary'
, proposalSummary_description
- The description of the proposal.
$sel:expirationDate:ProposalSummary'
, proposalSummary_expirationDate
- The date and time that the proposal expires. This is the CreationDate
plus the ProposalDurationInHours
that is specified in the
ProposalThresholdPolicy
. After this date and time, if members haven't
cast enough votes to determine the outcome according to the voting
policy, the proposal is EXPIRED
and Actions
aren't carried out.
$sel:proposalId:ProposalSummary'
, proposalSummary_proposalId
- The unique identifier of the proposal.
$sel:proposedByMemberId:ProposalSummary'
, proposalSummary_proposedByMemberId
- The unique identifier of the member that created the proposal.
$sel:proposedByMemberName:ProposalSummary'
, proposalSummary_proposedByMemberName
- The name of the member that created the proposal.
$sel:status:ProposalSummary'
, proposalSummary_status
- The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.APPROVED
- The proposal was approved with sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out.REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out.EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out.ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error.
proposalSummary_arn :: Lens' ProposalSummary (Maybe Text) Source #
The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
proposalSummary_creationDate :: Lens' ProposalSummary (Maybe UTCTime) Source #
The date and time that the proposal was created.
proposalSummary_description :: Lens' ProposalSummary (Maybe Text) Source #
The description of the proposal.
proposalSummary_expirationDate :: Lens' ProposalSummary (Maybe UTCTime) Source #
The date and time that the proposal expires. This is the CreationDate
plus the ProposalDurationInHours
that is specified in the
ProposalThresholdPolicy
. After this date and time, if members haven't
cast enough votes to determine the outcome according to the voting
policy, the proposal is EXPIRED
and Actions
aren't carried out.
proposalSummary_proposalId :: Lens' ProposalSummary (Maybe Text) Source #
The unique identifier of the proposal.
proposalSummary_proposedByMemberId :: Lens' ProposalSummary (Maybe Text) Source #
The unique identifier of the member that created the proposal.
proposalSummary_proposedByMemberName :: Lens' ProposalSummary (Maybe Text) Source #
The name of the member that created the proposal.
proposalSummary_status :: Lens' ProposalSummary (Maybe ProposalStatus) Source #
The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.APPROVED
- The proposal was approved with sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out.REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out.EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out.ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error.