types

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDeniedException

type AccessDeniedException struct {
	Message *string
}

You do not have sufficient access to perform this action.

func (*AccessDeniedException) Error

func (e *AccessDeniedException) Error() string

func (*AccessDeniedException) ErrorCode

func (e *AccessDeniedException) ErrorCode() string

func (*AccessDeniedException) ErrorFault

func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault

func (*AccessDeniedException) ErrorMessage

func (e *AccessDeniedException) ErrorMessage() string

type ApprovalThresholdPolicy

type ApprovalThresholdPolicy struct {

	// The duration from the time that a proposal is created until it expires. If
	// members cast neither the required number of YES votes to approve the proposal
	// nor the number of NO votes required to reject it before the duration expires,
	// the proposal is EXPIRED and ProposalActions are not carried out.
	ProposalDurationInHours *int32

	// Determines whether the vote percentage must be greater than the
	// ThresholdPercentage or must be greater than or equal to the ThreholdPercentage
	// to be approved.
	ThresholdComparator ThresholdComparator

	// The percentage of votes among all members that must be YES for a proposal to be
	// approved. For example, a ThresholdPercentage value of 50 indicates 50%. The
	// ThresholdComparator determines the precise comparison. If a ThresholdPercentage
	// value of 50 is specified on a network with 10 members, along with a
	// ThresholdComparator value of GREATER_THAN, this indicates that 6 YES votes are
	// required for the proposal to be approved.
	ThresholdPercentage *int32
}

A policy type that defines the voting rules for the network. The rules decide if a proposal is approved. Approval may be based on criteria such as the percentage of YES votes and the duration of the proposal. The policy applies to all proposals and is specified when the network is created. Applies only to Hyperledger Fabric.

type Edition

type Edition string
const (
	EditionStarter  Edition = "STARTER"
	EditionStandard Edition = "STANDARD"
)

Enum values for Edition

func (Edition) Values added in v0.29.0

func (Edition) Values() []Edition

Values returns all known values for Edition. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Framework

type Framework string
const (
	FrameworkHyperledgerFabric Framework = "HYPERLEDGER_FABRIC"
	FrameworkEthereum          Framework = "ETHEREUM"
)

Enum values for Framework

func (Framework) Values added in v0.29.0

func (Framework) Values() []Framework

Values returns all known values for Framework. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type IllegalActionException

type IllegalActionException struct {
	Message *string
}

func (*IllegalActionException) Error

func (e *IllegalActionException) Error() string

func (*IllegalActionException) ErrorCode

func (e *IllegalActionException) ErrorCode() string

func (*IllegalActionException) ErrorFault

func (e *IllegalActionException) ErrorFault() smithy.ErrorFault

func (*IllegalActionException) ErrorMessage

func (e *IllegalActionException) ErrorMessage() string

type InternalServiceErrorException

type InternalServiceErrorException struct {
	Message *string
}

The request processing has failed because of an unknown error, exception or failure.

func (*InternalServiceErrorException) Error

func (*InternalServiceErrorException) ErrorCode

func (e *InternalServiceErrorException) ErrorCode() string

func (*InternalServiceErrorException) ErrorFault

func (*InternalServiceErrorException) ErrorMessage

func (e *InternalServiceErrorException) ErrorMessage() string

type InvalidRequestException

type InvalidRequestException struct {
	Message *string
}

The action or operation requested is invalid. Verify that the action is typed correctly.

func (*InvalidRequestException) Error

func (e *InvalidRequestException) Error() string

func (*InvalidRequestException) ErrorCode

func (e *InvalidRequestException) ErrorCode() string

func (*InvalidRequestException) ErrorFault

func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault

func (*InvalidRequestException) ErrorMessage

func (e *InvalidRequestException) ErrorMessage() string

type Invitation

type Invitation struct {

	// The date and time that the invitation was created.
	CreationDate *time.Time

	// The date and time that the invitation expires. This is the CreationDate plus the
	// ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After
	// this date and time, the invitee can no longer create a member and join the
	// network using this InvitationId.
	ExpirationDate *time.Time

	// The unique identifier for the invitation.
	InvitationId *string

	// A summary of network configuration properties.
	NetworkSummary *NetworkSummary

	// The status of the invitation:
	//
	// * PENDING - The invitee has not created a member
	// to join the network, and the invitation has not yet expired.
	//
	// * ACCEPTING - The
	// invitee has begun creating a member, and creation has not yet completed.
	//
	// *
	// ACCEPTED - The invitee created a member and joined the network using the
	// InvitationID.
	//
	// * REJECTED - The invitee rejected the invitation.
	//
	// * EXPIRED -
	// The invitee neither created a member nor rejected the invitation before the
	// ExpirationDate.
	Status InvitationStatus
}

An invitation to an AWS account to create a member and join the network. Applies only to Hyperledger Fabric.

type InvitationStatus

type InvitationStatus string
const (
	InvitationStatusPending   InvitationStatus = "PENDING"
	InvitationStatusAccepted  InvitationStatus = "ACCEPTED"
	InvitationStatusAccepting InvitationStatus = "ACCEPTING"
	InvitationStatusRejected  InvitationStatus = "REJECTED"
	InvitationStatusExpired   InvitationStatus = "EXPIRED"
)

Enum values for InvitationStatus

func (InvitationStatus) Values added in v0.29.0

Values returns all known values for InvitationStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type InviteAction

type InviteAction struct {

	// The AWS account ID to invite.
	//
	// This member is required.
	Principal *string
}

An action to invite a specific AWS account to create a member and join the network. The InviteAction is carried out when a Proposal is APPROVED. Applies only to Hyperledger Fabric.

type LogConfiguration

type LogConfiguration struct {

	// Indicates whether logging is enabled.
	Enabled *bool
}

A configuration for logging events.

type LogConfigurations

type LogConfigurations struct {

	// Parameters for publishing logs to Amazon CloudWatch Logs.
	Cloudwatch *LogConfiguration
}

A collection of log configurations.

type Member

type Member struct {

	// The date and time that the member was created.
	CreationDate *time.Time

	// An optional description for the member.
	Description *string

	// Attributes relevant to a member for the blockchain framework that the Managed
	// Blockchain network uses.
	FrameworkAttributes *MemberFrameworkAttributes

	// The unique identifier of the member.
	Id *string

	// Configuration properties for logging events associated with a member.
	LogPublishingConfiguration *MemberLogPublishingConfiguration

	// The name of the member.
	Name *string

	// The unique identifier of the network to which the member belongs.
	NetworkId *string

	// The status of a member.
	//
	// * CREATING - The AWS account is in the process of
	// creating a member.
	//
	// * AVAILABLE - The member has been created and can
	// participate in the network.
	//
	// * CREATE_FAILED - The AWS account attempted to
	// create a member and creation failed.
	//
	// * DELETING - The member and all associated
	// resources are in the process of being deleted. Either the AWS account that owns
	// the member deleted it, or the member is being deleted as the result of an
	// APPROVEDPROPOSAL to remove the member.
	//
	// * DELETED - The member can no longer
	// participate on the network and all associated resources are deleted. Either the
	// AWS account that owns the member deleted it, or the member is being deleted as
	// the result of an APPROVEDPROPOSAL to remove the member.
	Status MemberStatus
}

Member configuration properties. Applies only to Hyperledger Fabric.

type MemberConfiguration

type MemberConfiguration struct {

	// Configuration properties of the blockchain framework relevant to the member.
	//
	// This member is required.
	FrameworkConfiguration *MemberFrameworkConfiguration

	// The name of the member.
	//
	// This member is required.
	Name *string

	// An optional description of the member.
	Description *string

	// Configuration properties for logging events associated with a member of a
	// Managed Blockchain network.
	LogPublishingConfiguration *MemberLogPublishingConfiguration
}

Configuration properties of the member. Applies only to Hyperledger Fabric.

type MemberFabricAttributes

type MemberFabricAttributes struct {

	// The user name for the initial administrator user for the member.
	AdminUsername *string

	// The endpoint used to access the member's certificate authority.
	CaEndpoint *string
}

Attributes of Hyperledger Fabric for a member in a Managed Blockchain network using the Hyperledger Fabric framework.

type MemberFabricConfiguration

type MemberFabricConfiguration struct {

	// The password for the member's initial administrative user. The AdminPassword
	// must be at least eight characters long and no more than 32 characters. It must
	// contain at least one uppercase letter, one lowercase letter, and one digit. It
	// cannot have a single quotation mark (‘), a double quotation marks (“), a forward
	// slash(/), a backward slash(\), @, or a space.
	//
	// This member is required.
	AdminPassword *string

	// The user name for the member's initial administrative user.
	//
	// This member is required.
	AdminUsername *string
}

Configuration properties for Hyperledger Fabric for a member in a Managed Blockchain network using the Hyperledger Fabric framework.

type MemberFabricLogPublishingConfiguration

type MemberFabricLogPublishingConfiguration struct {

	// Configuration properties for logging events associated with a member's
	// Certificate Authority (CA). CA logs help you determine when a member in your
	// account joins the network, or when new peers register with a member CA.
	CaLogs *LogConfigurations
}

Configuration properties for logging events associated with a member of a Managed Blockchain network using the Hyperledger Fabric framework.

type MemberFrameworkAttributes

type MemberFrameworkAttributes struct {

	// Attributes of Hyperledger Fabric relevant to a member on a Managed Blockchain
	// network that uses Hyperledger Fabric.
	Fabric *MemberFabricAttributes
}

Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.

type MemberFrameworkConfiguration

type MemberFrameworkConfiguration struct {

	// Attributes of Hyperledger Fabric for a member on a Managed Blockchain network
	// that uses Hyperledger Fabric.
	Fabric *MemberFabricConfiguration
}

Configuration properties relevant to a member for the blockchain framework that the Managed Blockchain network uses.

type MemberLogPublishingConfiguration

type MemberLogPublishingConfiguration struct {

	// Configuration properties for logging events associated with a member of a
	// Managed Blockchain network using the Hyperledger Fabric framework.
	Fabric *MemberFabricLogPublishingConfiguration
}

Configuration properties for logging events associated with a member of a Managed Blockchain network.

type MemberStatus

type MemberStatus string
const (
	MemberStatusCreating     MemberStatus = "CREATING"
	MemberStatusAvailable    MemberStatus = "AVAILABLE"
	MemberStatusCreateFailed MemberStatus = "CREATE_FAILED"
	MemberStatusUpdating     MemberStatus = "UPDATING"
	MemberStatusDeleting     MemberStatus = "DELETING"
	MemberStatusDeleted      MemberStatus = "DELETED"
)

Enum values for MemberStatus

func (MemberStatus) Values added in v0.29.0

func (MemberStatus) Values() []MemberStatus

Values returns all known values for MemberStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type MemberSummary

type MemberSummary struct {

	// The date and time that the member was created.
	CreationDate *time.Time

	// An optional description of the member.
	Description *string

	// The unique identifier of the member.
	Id *string

	// An indicator of whether the member is owned by your AWS account or a different
	// AWS account.
	IsOwned *bool

	// The name of the member.
	Name *string

	// The status of the member.
	//
	// * CREATING - The AWS account is in the process of
	// creating a member.
	//
	// * AVAILABLE - The member has been created and can
	// participate in the network.
	//
	// * CREATE_FAILED - The AWS account attempted to
	// create a member and creation failed.
	//
	// * DELETING - The member and all associated
	// resources are in the process of being deleted. Either the AWS account that owns
	// the member deleted it, or the member is being deleted as the result of an
	// APPROVEDPROPOSAL to remove the member.
	//
	// * DELETED - The member can no longer
	// participate on the network and all associated resources are deleted. Either the
	// AWS account that owns the member deleted it, or the member is being deleted as
	// the result of an APPROVEDPROPOSAL to remove the member.
	Status MemberStatus
}

A summary of configuration properties for a member. Applies only to Hyperledger Fabric.

type Network

type Network struct {

	// The date and time that the network was created.
	CreationDate *time.Time

	// Attributes of the blockchain framework for the network.
	Description *string

	// The blockchain framework that the network uses.
	Framework Framework

	// Attributes of the blockchain framework that the network uses.
	FrameworkAttributes *NetworkFrameworkAttributes

	// The version of the blockchain framework that the network uses.
	FrameworkVersion *string

	// The unique identifier of the network.
	Id *string

	// The name of the network.
	Name *string

	// The current status of the network.
	Status NetworkStatus

	// The voting rules for the network to decide if a proposal is accepted.
	VotingPolicy *VotingPolicy

	// The VPC endpoint service name of the VPC endpoint service of the network.
	// Members use the VPC endpoint service name to create a VPC endpoint to access
	// network resources.
	VpcEndpointServiceName *string
}

Network configuration properties.

type NetworkEthereumAttributes added in v0.31.0

type NetworkEthereumAttributes struct {

	// The Ethereum CHAIN_ID associated with the Ethereum network. Chain IDs are as
	// follows:
	//
	// * mainnet = 1
	//
	// * rinkeby = 4
	//
	// * ropsten = 3
	ChainId *string
}

Attributes of Ethereum for a network.

type NetworkFabricAttributes

type NetworkFabricAttributes struct {

	// The edition of Amazon Managed Blockchain that Hyperledger Fabric uses. For more
	// information, see Amazon Managed Blockchain Pricing
	// (http://aws.amazon.com/managed-blockchain/pricing/).
	Edition Edition

	// The endpoint of the ordering service for the network.
	OrderingServiceEndpoint *string
}

Attributes of Hyperledger Fabric for a network.

type NetworkFabricConfiguration

type NetworkFabricConfiguration struct {

	// The edition of Amazon Managed Blockchain that the network uses. For more
	// information, see Amazon Managed Blockchain Pricing
	// (http://aws.amazon.com/managed-blockchain/pricing/).
	//
	// This member is required.
	Edition Edition
}

Hyperledger Fabric configuration properties for the network.

type NetworkFrameworkAttributes

type NetworkFrameworkAttributes struct {

	// Attributes of an Ethereum network for Managed Blockchain resources participating
	// in an Ethereum network.
	Ethereum *NetworkEthereumAttributes

	// Attributes of Hyperledger Fabric for a Managed Blockchain network that uses
	// Hyperledger Fabric.
	Fabric *NetworkFabricAttributes
}

Attributes relevant to the network for the blockchain framework that the network uses.

type NetworkFrameworkConfiguration

type NetworkFrameworkConfiguration struct {

	// Hyperledger Fabric configuration properties for a Managed Blockchain network
	// that uses Hyperledger Fabric.
	Fabric *NetworkFabricConfiguration
}

Configuration properties relevant to the network for the blockchain framework that the network uses.

type NetworkStatus

type NetworkStatus string
const (
	NetworkStatusCreating     NetworkStatus = "CREATING"
	NetworkStatusAvailable    NetworkStatus = "AVAILABLE"
	NetworkStatusCreateFailed NetworkStatus = "CREATE_FAILED"
	NetworkStatusDeleting     NetworkStatus = "DELETING"
	NetworkStatusDeleted      NetworkStatus = "DELETED"
)

Enum values for NetworkStatus

func (NetworkStatus) Values added in v0.29.0

func (NetworkStatus) Values() []NetworkStatus

Values returns all known values for NetworkStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type NetworkSummary

type NetworkSummary struct {

	// The date and time that the network was created.
	CreationDate *time.Time

	// An optional description of the network.
	Description *string

	// The blockchain framework that the network uses.
	Framework Framework

	// The version of the blockchain framework that the network uses.
	FrameworkVersion *string

	// The unique identifier of the network.
	Id *string

	// The name of the network.
	Name *string

	// The current status of the network.
	Status NetworkStatus
}

A summary of network configuration properties.

type Node

type Node struct {

	// The Availability Zone in which the node exists.
	AvailabilityZone *string

	// The date and time that the node was created.
	CreationDate *time.Time

	// Attributes of the blockchain framework being used.
	FrameworkAttributes *NodeFrameworkAttributes

	// The unique identifier of the node.
	Id *string

	// The instance type of the node.
	InstanceType *string

	// Configuration properties for logging events associated with a peer node on a
	// Hyperledger Fabric network on Managed Blockchain.
	LogPublishingConfiguration *NodeLogPublishingConfiguration

	// The unique identifier of the member to which the node belongs. Applies only to
	// Hyperledger Fabric.
	MemberId *string

	// The unique identifier of the network that the node is on.
	NetworkId *string

	// The state database that the node uses. Values are LevelDB or CouchDB. Applies
	// only to Hyperledger Fabric.
	StateDB StateDBType

	// The status of the node.
	Status NodeStatus
}

Configuration properties of a node.

type NodeConfiguration

type NodeConfiguration struct {

	// The Amazon Managed Blockchain instance type for the node.
	//
	// This member is required.
	InstanceType *string

	// The Availability Zone in which the node exists.
	AvailabilityZone *string

	// Configuration properties for logging events associated with a peer node on a
	// Hyperledger Fabric network on Managed Blockchain.
	LogPublishingConfiguration *NodeLogPublishingConfiguration

	// The state database that the node uses. Values are LevelDB or CouchDB. When using
	// an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or
	// later, the default is CouchDB. Applies only to Hyperledger Fabric.
	StateDB StateDBType
}

Configuration properties of a node.

type NodeEthereumAttributes added in v0.31.0

type NodeEthereumAttributes struct {

	// The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods
	// over HTTP connections from a client. Use this endpoint in client code for smart
	// contracts when using an HTTP connection. Connections to this endpoint are
	// authenticated using Signature Version 4
	// (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
	HttpEndpoint *string

	// The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods
	// over WebSockets connections from a client. Use this endpoint in client code for
	// smart contracts when using a WebSockets connection. Connections to this endpoint
	// are authenticated using Signature Version 4
	// (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
	WebSocketEndpoint *string
}

Attributes of an Ethereum node.

type NodeFabricAttributes

type NodeFabricAttributes struct {

	// The endpoint that identifies the peer node for all services except peer
	// channel-based event services.
	PeerEndpoint *string

	// The endpoint that identifies the peer node for peer channel-based event
	// services.
	PeerEventEndpoint *string
}

Attributes of Hyperledger Fabric for a peer node on a Hyperledger Fabric network on Managed Blockchain.

type NodeFabricLogPublishingConfiguration

type NodeFabricLogPublishingConfiguration struct {

	// Configuration properties for logging events associated with chaincode execution
	// on a peer node. Chaincode logs contain the results of instantiating, invoking,
	// and querying the chaincode. A peer can run multiple instances of chaincode. When
	// enabled, a log stream is created for all chaincodes, with an individual log
	// stream for each chaincode.
	ChaincodeLogs *LogConfigurations

	// Configuration properties for a peer node log. Peer node logs contain messages
	// generated when your client submits transaction proposals to peer nodes, requests
	// to join channels, enrolls an admin peer, and lists the chaincode instances on a
	// peer node.
	PeerLogs *LogConfigurations
}

Configuration properties for logging events associated with a peer node owned by a member in a Managed Blockchain network.

type NodeFrameworkAttributes

type NodeFrameworkAttributes struct {

	// Attributes of Ethereum for a node on a Managed Blockchain network that uses
	// Ethereum.
	Ethereum *NodeEthereumAttributes

	// Attributes of Hyperledger Fabric for a peer node on a Managed Blockchain network
	// that uses Hyperledger Fabric.
	Fabric *NodeFabricAttributes
}

Attributes relevant to a node on a Managed Blockchain network for the blockchain framework that the network uses.

type NodeLogPublishingConfiguration

type NodeLogPublishingConfiguration struct {

	// Configuration properties for logging events associated with a node that is owned
	// by a member of a Managed Blockchain network using the Hyperledger Fabric
	// framework.
	Fabric *NodeFabricLogPublishingConfiguration
}

Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.

type NodeStatus

type NodeStatus string
const (
	NodeStatusCreating     NodeStatus = "CREATING"
	NodeStatusAvailable    NodeStatus = "AVAILABLE"
	NodeStatusUnhealthy    NodeStatus = "UNHEALTHY"
	NodeStatusCreateFailed NodeStatus = "CREATE_FAILED"
	NodeStatusUpdating     NodeStatus = "UPDATING"
	NodeStatusDeleting     NodeStatus = "DELETING"
	NodeStatusDeleted      NodeStatus = "DELETED"
	NodeStatusFailed       NodeStatus = "FAILED"
)

Enum values for NodeStatus

func (NodeStatus) Values added in v0.29.0

func (NodeStatus) Values() []NodeStatus

Values returns all known values for NodeStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type NodeSummary

type NodeSummary struct {

	// The Availability Zone in which the node exists.
	AvailabilityZone *string

	// The date and time that the node was created.
	CreationDate *time.Time

	// The unique identifier of the node.
	Id *string

	// The EC2 instance type for the node.
	InstanceType *string

	// The status of the node.
	Status NodeStatus
}

A summary of configuration properties for a node.

type Proposal

type Proposal struct {

	// The actions to perform on the network if the proposal is APPROVED.
	Actions *ProposalActions

	// The date and time that the proposal was created.
	CreationDate *time.Time

	// The description of the proposal.
	Description *string

	// The date and time that the proposal expires. This is the CreationDate plus the
	// ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After
	// this date and time, if members have not cast enough votes to determine the
	// outcome according to the voting policy, the proposal is EXPIRED and Actions are
	// not carried out.
	ExpirationDate *time.Time

	// The unique identifier of the network for which the proposal is made.
	NetworkId *string

	// The current total of NO votes cast on the proposal by members.
	NoVoteCount *int32

	// The number of votes remaining to be cast on the proposal by members. In other
	// words, the number of members minus the sum of YES votes and NO votes.
	OutstandingVoteCount *int32

	// The unique identifier of the proposal.
	ProposalId *string

	// The unique identifier of the member that created the proposal.
	ProposedByMemberId *string

	// The name of the member that created the proposal.
	ProposedByMemberName *string

	// The status of the proposal. Values are as follows:
	//
	// * IN_PROGRESS - The proposal
	// is active and open for member voting.
	//
	// * APPROVED - The proposal was approved
	// with sufficient YES votes among members according to the VotingPolicy specified
	// for the Network. The specified proposal actions are carried out.
	//
	// * REJECTED -
	// The proposal was rejected with insufficient YES votes among members according to
	// the VotingPolicy specified for the Network. The specified ProposalActions are
	// not carried out.
	//
	// * EXPIRED - Members did not cast the number of votes required
	// to determine the proposal outcome before the proposal expired. The specified
	// ProposalActions are not carried out.
	//
	// * ACTION_FAILED - One or more of the
	// specified ProposalActions in a proposal that was approved could not be completed
	// because of an error. The ACTION_FAILED status occurs even if only one
	// ProposalAction fails and other actions are successful.
	Status ProposalStatus

	// The current total of YES votes cast on the proposal by members.
	YesVoteCount *int32
}

Properties of a proposal on a Managed Blockchain network. Applies only to Hyperledger Fabric.

type ProposalActions

type ProposalActions struct {

	// The actions to perform for an APPROVED proposal to invite an AWS account to
	// create a member and join the network.
	Invitations []InviteAction

	// The actions to perform for an APPROVED proposal to remove a member from the
	// network, which deletes the member and all associated member resources from the
	// network.
	Removals []RemoveAction
}

The actions to carry out if a proposal is APPROVED. Applies only to Hyperledger Fabric.

type ProposalStatus

type ProposalStatus string
const (
	ProposalStatusInProgress   ProposalStatus = "IN_PROGRESS"
	ProposalStatusApproved     ProposalStatus = "APPROVED"
	ProposalStatusRejected     ProposalStatus = "REJECTED"
	ProposalStatusExpired      ProposalStatus = "EXPIRED"
	ProposalStatusActionFailed ProposalStatus = "ACTION_FAILED"
)

Enum values for ProposalStatus

func (ProposalStatus) Values added in v0.29.0

func (ProposalStatus) Values() []ProposalStatus

Values returns all known values for ProposalStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ProposalSummary

type ProposalSummary struct {

	// The date and time that the proposal was created.
	CreationDate *time.Time

	// The description of the proposal.
	Description *string

	// The date and time that the proposal expires. This is the CreationDate plus the
	// ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After
	// this date and time, if members have not cast enough votes to determine the
	// outcome according to the voting policy, the proposal is EXPIRED and Actions are
	// not carried out.
	ExpirationDate *time.Time

	// The unique identifier of the proposal.
	ProposalId *string

	// The unique identifier of the member that created the proposal.
	ProposedByMemberId *string

	// The name of the member that created the proposal.
	ProposedByMemberName *string

	// The status of the proposal. Values are as follows:
	//
	// * IN_PROGRESS - The proposal
	// is active and open for member voting.
	//
	// * APPROVED - The proposal was approved
	// with sufficient YES votes among members according to the VotingPolicy specified
	// for the Network. The specified proposal actions are carried out.
	//
	// * REJECTED -
	// The proposal was rejected with insufficient YES votes among members according to
	// the VotingPolicy specified for the Network. The specified ProposalActions are
	// not carried out.
	//
	// * EXPIRED - Members did not cast the number of votes required
	// to determine the proposal outcome before the proposal expired. The specified
	// ProposalActions are not carried out.
	//
	// * ACTION_FAILED - One or more of the
	// specified ProposalActions in a proposal that was approved could not be completed
	// because of an error.
	Status ProposalStatus
}

Properties of a proposal. Applies only to Hyperledger Fabric.

type RemoveAction

type RemoveAction struct {

	// The unique identifier of the member to remove.
	//
	// This member is required.
	MemberId *string
}

An action to remove a member from a Managed Blockchain network as the result of a removal proposal that is APPROVED. The member and all associated resources are deleted from the network. Applies only to Hyperledger Fabric.

type ResourceAlreadyExistsException

type ResourceAlreadyExistsException struct {
	Message *string
}

A resource request is issued for a resource that already exists.

func (*ResourceAlreadyExistsException) Error

func (*ResourceAlreadyExistsException) ErrorCode

func (e *ResourceAlreadyExistsException) ErrorCode() string

func (*ResourceAlreadyExistsException) ErrorFault

func (*ResourceAlreadyExistsException) ErrorMessage

func (e *ResourceAlreadyExistsException) ErrorMessage() string

type ResourceLimitExceededException

type ResourceLimitExceededException struct {
	Message *string
}

The maximum number of resources of that type already exist. Ensure the resources requested are within the boundaries of the service edition and your account limits.

func (*ResourceLimitExceededException) Error

func (*ResourceLimitExceededException) ErrorCode

func (e *ResourceLimitExceededException) ErrorCode() string

func (*ResourceLimitExceededException) ErrorFault

func (*ResourceLimitExceededException) ErrorMessage

func (e *ResourceLimitExceededException) ErrorMessage() string

type ResourceNotFoundException

type ResourceNotFoundException struct {
	Message *string
}

A requested resource does not exist on the network. It may have been deleted or referenced inaccurately.

func (*ResourceNotFoundException) Error

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorFault

func (*ResourceNotFoundException) ErrorMessage

func (e *ResourceNotFoundException) ErrorMessage() string

type ResourceNotReadyException

type ResourceNotReadyException struct {
	Message *string
}

The requested resource exists but is not in a status that can complete the operation.

func (*ResourceNotReadyException) Error

func (e *ResourceNotReadyException) Error() string

func (*ResourceNotReadyException) ErrorCode

func (e *ResourceNotReadyException) ErrorCode() string

func (*ResourceNotReadyException) ErrorFault

func (*ResourceNotReadyException) ErrorMessage

func (e *ResourceNotReadyException) ErrorMessage() string

type StateDBType added in v0.29.0

type StateDBType string
const (
	StateDBTypeLevelDB StateDBType = "LevelDB"
	StateDBTypeCouchDB StateDBType = "CouchDB"
)

Enum values for StateDBType

func (StateDBType) Values added in v0.29.0

func (StateDBType) Values() []StateDBType

Values returns all known values for StateDBType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ThresholdComparator

type ThresholdComparator string
const (
	ThresholdComparatorGreaterThan          ThresholdComparator = "GREATER_THAN"
	ThresholdComparatorGreaterThanOrEqualTo ThresholdComparator = "GREATER_THAN_OR_EQUAL_TO"
)

Enum values for ThresholdComparator

func (ThresholdComparator) Values added in v0.29.0

Values returns all known values for ThresholdComparator. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ThrottlingException

type ThrottlingException struct {
	Message *string
}

The request or operation could not be performed because a service is throttling requests. The most common source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is exceeded. Request a limit increase or delete unused resources if possible.

func (*ThrottlingException) Error

func (e *ThrottlingException) Error() string

func (*ThrottlingException) ErrorCode

func (e *ThrottlingException) ErrorCode() string

func (*ThrottlingException) ErrorFault

func (e *ThrottlingException) ErrorFault() smithy.ErrorFault

func (*ThrottlingException) ErrorMessage

func (e *ThrottlingException) ErrorMessage() string

type VoteSummary

type VoteSummary struct {

	// The unique identifier of the member that cast the vote.
	MemberId *string

	// The name of the member that cast the vote.
	MemberName *string

	// The vote value, either YES or NO.
	Vote VoteValue
}

Properties of an individual vote that a member cast for a proposal. Applies only to Hyperledger Fabric.

type VoteValue

type VoteValue string
const (
	VoteValueYes VoteValue = "YES"
	VoteValueNo  VoteValue = "NO"
)

Enum values for VoteValue

func (VoteValue) Values added in v0.29.0

func (VoteValue) Values() []VoteValue

Values returns all known values for VoteValue. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type VotingPolicy

type VotingPolicy struct {

	// Defines the rules for the network for voting on proposals, such as the
	// percentage of YES votes required for the proposal to be approved and the
	// duration of the proposal. The policy applies to all proposals and is specified
	// when the network is created.
	ApprovalThresholdPolicy *ApprovalThresholdPolicy
}

The voting rules for the network to decide if a proposal is accepted Applies only to Hyperledger Fabric.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL