| 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 | 
Amazonka.ManagedBlockChain.ListProposals
Description
Returns a list of proposals for the network.
Applies only to Hyperledger Fabric.
Synopsis
- data ListProposals = ListProposals' {}
 - newListProposals :: Text -> ListProposals
 - listProposals_maxResults :: Lens' ListProposals (Maybe Natural)
 - listProposals_nextToken :: Lens' ListProposals (Maybe Text)
 - listProposals_networkId :: Lens' ListProposals Text
 - data ListProposalsResponse = ListProposalsResponse' {
- nextToken :: Maybe Text
 - proposals :: Maybe [ProposalSummary]
 - httpStatus :: Int
 
 - newListProposalsResponse :: Int -> ListProposalsResponse
 - listProposalsResponse_nextToken :: Lens' ListProposalsResponse (Maybe Text)
 - listProposalsResponse_proposals :: Lens' ListProposalsResponse (Maybe [ProposalSummary])
 - listProposalsResponse_httpStatus :: Lens' ListProposalsResponse Int
 
Creating a Request
data ListProposals Source #
See: newListProposals smart constructor.
Constructors
| ListProposals' | |
Instances
Arguments
| :: Text | |
| -> ListProposals | 
Create a value of ListProposals 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:maxResults:ListProposals', listProposals_maxResults - The maximum number of proposals to return.
ListProposals, listProposals_nextToken - The pagination token that indicates the next set of results to retrieve.
ListProposals, listProposals_networkId - The unique identifier of the network.
Request Lenses
listProposals_maxResults :: Lens' ListProposals (Maybe Natural) Source #
The maximum number of proposals to return.
listProposals_nextToken :: Lens' ListProposals (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposals_networkId :: Lens' ListProposals Text Source #
The unique identifier of the network.
Destructuring the Response
data ListProposalsResponse Source #
See: newListProposalsResponse smart constructor.
Constructors
| ListProposalsResponse' | |
Fields 
  | |
Instances
newListProposalsResponse Source #
Create a value of ListProposalsResponse 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:
ListProposals, listProposalsResponse_nextToken - The pagination token that indicates the next set of results to retrieve.
$sel:proposals:ListProposalsResponse', listProposalsResponse_proposals - The summary of each proposal made on the network.
$sel:httpStatus:ListProposalsResponse', listProposalsResponse_httpStatus - The response's http status code.
Response Lenses
listProposalsResponse_nextToken :: Lens' ListProposalsResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposalsResponse_proposals :: Lens' ListProposalsResponse (Maybe [ProposalSummary]) Source #
The summary of each proposal made on the network.
listProposalsResponse_httpStatus :: Lens' ListProposalsResponse Int Source #
The response's http status code.