| 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.GetProposal
Description
Returns detailed information about a proposal.
Applies only to Hyperledger Fabric.
Synopsis
- data GetProposal = GetProposal' {
- networkId :: Text
 - proposalId :: Text
 
 - newGetProposal :: Text -> Text -> GetProposal
 - getProposal_networkId :: Lens' GetProposal Text
 - getProposal_proposalId :: Lens' GetProposal Text
 - data GetProposalResponse = GetProposalResponse' {
- proposal :: Maybe Proposal
 - httpStatus :: Int
 
 - newGetProposalResponse :: Int -> GetProposalResponse
 - getProposalResponse_proposal :: Lens' GetProposalResponse (Maybe Proposal)
 - getProposalResponse_httpStatus :: Lens' GetProposalResponse Int
 
Creating a Request
data GetProposal Source #
See: newGetProposal smart constructor.
Constructors
| GetProposal' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetProposal | 
Create a value of GetProposal 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:
GetProposal, getProposal_networkId - The unique identifier of the network for which the proposal is made.
GetProposal, getProposal_proposalId - The unique identifier of the proposal.
Request Lenses
getProposal_networkId :: Lens' GetProposal Text Source #
The unique identifier of the network for which the proposal is made.
getProposal_proposalId :: Lens' GetProposal Text Source #
The unique identifier of the proposal.
Destructuring the Response
data GetProposalResponse Source #
See: newGetProposalResponse smart constructor.
Constructors
| GetProposalResponse' | |
Fields 
  | |
Instances
newGetProposalResponse Source #
Arguments
| :: Int | |
| -> GetProposalResponse | 
Create a value of GetProposalResponse 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:proposal:GetProposalResponse', getProposalResponse_proposal - Information about a proposal.
$sel:httpStatus:GetProposalResponse', getProposalResponse_httpStatus - The response's http status code.
Response Lenses
getProposalResponse_proposal :: Lens' GetProposalResponse (Maybe Proposal) Source #
Information about a proposal.
getProposalResponse_httpStatus :: Lens' GetProposalResponse Int Source #
The response's http status code.