Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal.
Applies only to Hyperledger Fabric.
Synopsis
- data CreateProposal = CreateProposal' {}
- newCreateProposal :: Text -> Text -> Text -> ProposalActions -> CreateProposal
- createProposal_description :: Lens' CreateProposal (Maybe Text)
- createProposal_tags :: Lens' CreateProposal (Maybe (HashMap Text Text))
- createProposal_clientRequestToken :: Lens' CreateProposal Text
- createProposal_networkId :: Lens' CreateProposal Text
- createProposal_memberId :: Lens' CreateProposal Text
- createProposal_actions :: Lens' CreateProposal ProposalActions
- data CreateProposalResponse = CreateProposalResponse' {
- proposalId :: Maybe Text
- httpStatus :: Int
- newCreateProposalResponse :: Int -> CreateProposalResponse
- createProposalResponse_proposalId :: Lens' CreateProposalResponse (Maybe Text)
- createProposalResponse_httpStatus :: Lens' CreateProposalResponse Int
Creating a Request
data CreateProposal Source #
See: newCreateProposal
smart constructor.
CreateProposal' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> ProposalActions | |
-> CreateProposal |
Create a value of CreateProposal
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:description:CreateProposal'
, createProposal_description
- A description for the proposal that is visible to voting members, for
example, "Proposal to add Example Corp. as member."
$sel:tags:CreateProposal'
, createProposal_tags
- Tags to assign to the proposal. Each tag consists of a key and optional
value.
When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource. If the proposal is for a network invitation, the invitation inherits the tags added to the proposal.
For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
$sel:clientRequestToken:CreateProposal'
, createProposal_clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the operation. An idempotent operation completes no more
than one time. This identifier is required only if you make a service
request directly using an HTTP client. It is generated automatically if
you use an AWS SDK or the AWS CLI.
$sel:networkId:CreateProposal'
, createProposal_networkId
- The unique identifier of the network for which the proposal is made.
$sel:memberId:CreateProposal'
, createProposal_memberId
- The unique identifier of the member that is creating the proposal. This
identifier is especially useful for identifying the member making the
proposal when multiple members exist in a single AWS account.
$sel:actions:CreateProposal'
, createProposal_actions
- The type of actions proposed, such as inviting a member or removing a
member. The types of Actions
in a proposal are mutually exclusive. For
example, a proposal with Invitations
actions cannot also contain
Removals
actions.
Request Lenses
createProposal_description :: Lens' CreateProposal (Maybe Text) Source #
A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp. as member."
createProposal_tags :: Lens' CreateProposal (Maybe (HashMap Text Text)) Source #
Tags to assign to the proposal. Each tag consists of a key and optional value.
When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource. If the proposal is for a network invitation, the invitation inherits the tags added to the proposal.
For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
createProposal_clientRequestToken :: Lens' CreateProposal Text Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an AWS SDK or the AWS CLI.
createProposal_networkId :: Lens' CreateProposal Text Source #
The unique identifier of the network for which the proposal is made.
createProposal_memberId :: Lens' CreateProposal Text Source #
The unique identifier of the member that is creating the proposal. This identifier is especially useful for identifying the member making the proposal when multiple members exist in a single AWS account.
createProposal_actions :: Lens' CreateProposal ProposalActions Source #
The type of actions proposed, such as inviting a member or removing a
member. The types of Actions
in a proposal are mutually exclusive. For
example, a proposal with Invitations
actions cannot also contain
Removals
actions.
Destructuring the Response
data CreateProposalResponse Source #
See: newCreateProposalResponse
smart constructor.
CreateProposalResponse' | |
|
Instances
newCreateProposalResponse Source #
Create a value of CreateProposalResponse
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:proposalId:CreateProposalResponse'
, createProposalResponse_proposalId
- The unique identifier of the proposal.
$sel:httpStatus:CreateProposalResponse'
, createProposalResponse_httpStatus
- The response's http status code.
Response Lenses
createProposalResponse_proposalId :: Lens' CreateProposalResponse (Maybe Text) Source #
The unique identifier of the proposal.
createProposalResponse_httpStatus :: Lens' CreateProposalResponse Int Source #
The response's http status code.