amazonka-managedblockchain-2.0: Amazon Managed Blockchain SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ManagedBlockChain.ListProposals

Description

Returns a list of proposals for the network.

Applies only to Hyperledger Fabric.

Synopsis

Creating a Request

data ListProposals Source #

See: newListProposals smart constructor.

Constructors

ListProposals' 

Fields

Instances

Instances details
ToHeaders ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

ToPath ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

ToQuery ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

AWSRequest ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Associated Types

type AWSResponse ListProposals #

Generic ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Associated Types

type Rep ListProposals :: Type -> Type #

Read ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Show ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

NFData ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Methods

rnf :: ListProposals -> () #

Eq ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Hashable ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

type AWSResponse ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

type Rep ListProposals Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

type Rep ListProposals = D1 ('MetaData "ListProposals" "Amazonka.ManagedBlockChain.ListProposals" "amazonka-managedblockchain-2.0-7ETEoTxOH0EDuOBkhEvxdC" 'False) (C1 ('MetaCons "ListProposals'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "networkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListProposals Source #

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

Instances details
Generic ListProposalsResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Associated Types

type Rep ListProposalsResponse :: Type -> Type #

Read ListProposalsResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Show ListProposalsResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

NFData ListProposalsResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

Methods

rnf :: ListProposalsResponse -> () #

Eq ListProposalsResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

type Rep ListProposalsResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.ListProposals

type Rep ListProposalsResponse = D1 ('MetaData "ListProposalsResponse" "Amazonka.ManagedBlockChain.ListProposals" "amazonka-managedblockchain-2.0-7ETEoTxOH0EDuOBkhEvxdC" 'False) (C1 ('MetaCons "ListProposalsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "proposals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProposalSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.