libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ManagedBlockChain.CreateProposal

Description

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

Creating a Request

data CreateProposal Source #

See: newCreateProposal smart constructor.

Constructors

CreateProposal' 

Fields

  • description :: Maybe Text

    A description for the proposal that is visible to voting members, for example, "Proposal to add Example Corp. as member."

  • tags :: Maybe (HashMap Text Text)

    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.

  • clientRequestToken :: Text

    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.

  • networkId :: Text

    The unique identifier of the network for which the proposal is made.

  • memberId :: Text

    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.

  • actions :: ProposalActions

    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.

Instances

Instances details
Eq CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Read CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Show CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Generic CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Associated Types

type Rep CreateProposal :: Type -> Type #

NFData CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Methods

rnf :: CreateProposal -> () #

Hashable CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

ToJSON CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

AWSRequest CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Associated Types

type AWSResponse CreateProposal #

ToHeaders CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

ToPath CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

ToQuery CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

type Rep CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

type Rep CreateProposal = D1 ('MetaData "CreateProposal" "Amazonka.ManagedBlockChain.CreateProposal" "libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain" 'False) (C1 ('MetaCons "CreateProposal'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "networkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "memberId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProposalActions)))))
type AWSResponse CreateProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

newCreateProposal Source #

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.

Constructors

CreateProposalResponse' 

Fields

Instances

Instances details
Eq CreateProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Read CreateProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Show CreateProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Generic CreateProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Associated Types

type Rep CreateProposalResponse :: Type -> Type #

NFData CreateProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

Methods

rnf :: CreateProposalResponse -> () #

type Rep CreateProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateProposal

type Rep CreateProposalResponse = D1 ('MetaData "CreateProposalResponse" "Amazonka.ManagedBlockChain.CreateProposal" "libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain" 'False) (C1 ('MetaCons "CreateProposalResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "proposalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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