ManagedBlockchain
public struct ManagedBlockchain
Client object for interacting with AWS ManagedBlockchain service.
Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority. Currently, Managed Blockchain supports the Hyperledger Fabric open source framework.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the ManagedBlockchain client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Creates a member within a Managed Blockchain network.
Declaration
Swift
public func createMember(_ input: CreateMemberInput) -> EventLoopFuture<CreateMemberOutput>
-
Creates a new blockchain network using Amazon Managed Blockchain.
Declaration
Swift
public func createNetwork(_ input: CreateNetworkInput) -> EventLoopFuture<CreateNetworkOutput>
-
Creates a peer node in a member.
Declaration
Swift
public func createNode(_ input: CreateNodeInput) -> EventLoopFuture<CreateNodeOutput>
-
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.
Declaration
Swift
public func createProposal(_ input: CreateProposalInput) -> EventLoopFuture<CreateProposalOutput>
-
Deletes a member. Deleting a member removes the member and all associated resources from the network. DeleteMember can only be called for a specified MemberId if the principal performing the action is associated with the AWS account that owns the member. In all other cases, the DeleteMember action is carried out as the result of an approved proposal to remove a member. If MemberId is the last member in a network specified by the last AWS account, the network is deleted also.
Declaration
Swift
public func deleteMember(_ input: DeleteMemberInput) -> EventLoopFuture<DeleteMemberOutput>
-
Deletes a peer node from a member that your AWS account owns. All data on the node is lost and cannot be recovered.
Declaration
Swift
public func deleteNode(_ input: DeleteNodeInput) -> EventLoopFuture<DeleteNodeOutput>
-
Returns detailed information about a member.
Declaration
Swift
public func getMember(_ input: GetMemberInput) -> EventLoopFuture<GetMemberOutput>
-
Returns detailed information about a network.
Declaration
Swift
public func getNetwork(_ input: GetNetworkInput) -> EventLoopFuture<GetNetworkOutput>
-
Returns detailed information about a peer node.
Declaration
Swift
public func getNode(_ input: GetNodeInput) -> EventLoopFuture<GetNodeOutput>
-
Returns detailed information about a proposal.
Declaration
Swift
public func getProposal(_ input: GetProposalInput) -> EventLoopFuture<GetProposalOutput>
-
Returns a listing of all invitations made on the specified network.
Declaration
Swift
public func listInvitations(_ input: ListInvitationsInput) -> EventLoopFuture<ListInvitationsOutput>
-
Returns a listing of the members in a network and properties of their configurations.
Declaration
Swift
public func listMembers(_ input: ListMembersInput) -> EventLoopFuture<ListMembersOutput>
-
Returns information about the networks in which the current AWS account has members.
Declaration
Swift
public func listNetworks(_ input: ListNetworksInput) -> EventLoopFuture<ListNetworksOutput>
-
Returns information about the nodes within a network.
Declaration
Swift
public func listNodes(_ input: ListNodesInput) -> EventLoopFuture<ListNodesOutput>
-
Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
Declaration
Swift
public func listProposalVotes(_ input: ListProposalVotesInput) -> EventLoopFuture<ListProposalVotesOutput>
-
Returns a listing of proposals for the network.
Declaration
Swift
public func listProposals(_ input: ListProposalsInput) -> EventLoopFuture<ListProposalsOutput>
-
Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.
Declaration
Swift
public func rejectInvitation(_ input: RejectInvitationInput) -> EventLoopFuture<RejectInvitationOutput>
-
Updates a member configuration with new parameters.
Declaration
Swift
public func updateMember(_ input: UpdateMemberInput) -> EventLoopFuture<UpdateMemberOutput>
-
Updates a node configuration with new parameters.
Declaration
Swift
public func updateNode(_ input: UpdateNodeInput) -> EventLoopFuture<UpdateNodeOutput>
-
Casts a vote for a specified ProposalId on behalf of a member. The member to vote as, specified by VoterMemberId, must be in the same AWS account as the principal that calls the action.
Declaration
Swift
public func voteOnProposal(_ input: VoteOnProposalInput) -> EventLoopFuture<VoteOnProposalOutput>
-
Returns a listing of all invitations made on the specified network.
Declaration
Swift
public func listInvitationsPaginator(_ input: ListInvitationsInput, onPage: @escaping (ListInvitationsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a listing of the members in a network and properties of their configurations.
Declaration
Swift
public func listMembersPaginator(_ input: ListMembersInput, onPage: @escaping (ListMembersOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns information about the networks in which the current AWS account has members.
Declaration
Swift
public func listNetworksPaginator(_ input: ListNetworksInput, onPage: @escaping (ListNetworksOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns information about the nodes within a network.
Declaration
Swift
public func listNodesPaginator(_ input: ListNodesInput, onPage: @escaping (ListNodesOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
Declaration
Swift
public func listProposalVotesPaginator(_ input: ListProposalVotesInput, onPage: @escaping (ListProposalVotesOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Returns a listing of proposals for the network.
Declaration
Swift
public func listProposalsPaginator(_ input: ListProposalsInput, onPage: @escaping (ListProposalsOutput, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct ListInvitationsInput : AWSShape
extension ManagedBlockchain.ListInvitationsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListMembersInput : AWSShape
extension ManagedBlockchain.ListMembersInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListNetworksInput : AWSShape
extension ManagedBlockchain.ListNetworksInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListNodesInput : AWSShape
extension ManagedBlockchain.ListNodesInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListProposalVotesInput : AWSShape
extension ManagedBlockchain.ListProposalVotesInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListProposalsInput : AWSShape
extension ManagedBlockchain.ListProposalsInput: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum Edition : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum Framework : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum InvitationStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum MemberStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum NetworkStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum NodeStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ProposalStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ThresholdComparator : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum VoteValue : String, CustomStringConvertible, Codable