Interface ManagedBlockchainAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
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.
Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental
differences between the frameworks, some API actions or data types may only apply in the context of one framework and
not the other. For example, actions related to Hyperledger Fabric network members such as CreateMember
and DeleteMember
don't apply to Ethereum.
The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aManagedBlockchainAsyncClient
.static ManagedBlockchainAsyncClient
create()
Create aManagedBlockchainAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateAccessorResponse> createAccessor
(Consumer<CreateAccessorRequest.Builder> createAccessorRequest) Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access.default CompletableFuture
<CreateAccessorResponse> createAccessor
(CreateAccessorRequest createAccessorRequest) Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access.default CompletableFuture
<CreateMemberResponse> createMember
(Consumer<CreateMemberRequest.Builder> createMemberRequest) Creates a member within a Managed Blockchain network.default CompletableFuture
<CreateMemberResponse> createMember
(CreateMemberRequest createMemberRequest) Creates a member within a Managed Blockchain network.default CompletableFuture
<CreateNetworkResponse> createNetwork
(Consumer<CreateNetworkRequest.Builder> createNetworkRequest) Creates a new blockchain network using Amazon Managed Blockchain.default CompletableFuture
<CreateNetworkResponse> createNetwork
(CreateNetworkRequest createNetworkRequest) Creates a new blockchain network using Amazon Managed Blockchain.default CompletableFuture
<CreateNodeResponse> createNode
(Consumer<CreateNodeRequest.Builder> createNodeRequest) Creates a node on the specified blockchain network.default CompletableFuture
<CreateNodeResponse> createNode
(CreateNodeRequest createNodeRequest) Creates a node on the specified blockchain network.default CompletableFuture
<CreateProposalResponse> createProposal
(Consumer<CreateProposalRequest.Builder> createProposalRequest) 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.default CompletableFuture
<CreateProposalResponse> createProposal
(CreateProposalRequest createProposalRequest) 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.default CompletableFuture
<DeleteAccessorResponse> deleteAccessor
(Consumer<DeleteAccessorRequest.Builder> deleteAccessorRequest) Deletes an accessor that your Amazon Web Services account owns.default CompletableFuture
<DeleteAccessorResponse> deleteAccessor
(DeleteAccessorRequest deleteAccessorRequest) Deletes an accessor that your Amazon Web Services account owns.default CompletableFuture
<DeleteMemberResponse> deleteMember
(Consumer<DeleteMemberRequest.Builder> deleteMemberRequest) Deletes a member.default CompletableFuture
<DeleteMemberResponse> deleteMember
(DeleteMemberRequest deleteMemberRequest) Deletes a member.default CompletableFuture
<DeleteNodeResponse> deleteNode
(Consumer<DeleteNodeRequest.Builder> deleteNodeRequest) Deletes a node that your Amazon Web Services account owns.default CompletableFuture
<DeleteNodeResponse> deleteNode
(DeleteNodeRequest deleteNodeRequest) Deletes a node that your Amazon Web Services account owns.default CompletableFuture
<GetAccessorResponse> getAccessor
(Consumer<GetAccessorRequest.Builder> getAccessorRequest) Returns detailed information about an accessor.default CompletableFuture
<GetAccessorResponse> getAccessor
(GetAccessorRequest getAccessorRequest) Returns detailed information about an accessor.default CompletableFuture
<GetMemberResponse> getMember
(Consumer<GetMemberRequest.Builder> getMemberRequest) Returns detailed information about a member.default CompletableFuture
<GetMemberResponse> getMember
(GetMemberRequest getMemberRequest) Returns detailed information about a member.default CompletableFuture
<GetNetworkResponse> getNetwork
(Consumer<GetNetworkRequest.Builder> getNetworkRequest) Returns detailed information about a network.default CompletableFuture
<GetNetworkResponse> getNetwork
(GetNetworkRequest getNetworkRequest) Returns detailed information about a network.default CompletableFuture
<GetNodeResponse> getNode
(Consumer<GetNodeRequest.Builder> getNodeRequest) Returns detailed information about a node.default CompletableFuture
<GetNodeResponse> getNode
(GetNodeRequest getNodeRequest) Returns detailed information about a node.default CompletableFuture
<GetProposalResponse> getProposal
(Consumer<GetProposalRequest.Builder> getProposalRequest) Returns detailed information about a proposal.default CompletableFuture
<GetProposalResponse> getProposal
(GetProposalRequest getProposalRequest) Returns detailed information about a proposal.default CompletableFuture
<ListAccessorsResponse> listAccessors
(Consumer<ListAccessorsRequest.Builder> listAccessorsRequest) Returns a list of the accessors and their properties.default CompletableFuture
<ListAccessorsResponse> listAccessors
(ListAccessorsRequest listAccessorsRequest) Returns a list of the accessors and their properties.default ListAccessorsPublisher
listAccessorsPaginator
(Consumer<ListAccessorsRequest.Builder> listAccessorsRequest) This is a variant oflistAccessors(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsRequest)
operation.default ListAccessorsPublisher
listAccessorsPaginator
(ListAccessorsRequest listAccessorsRequest) This is a variant oflistAccessors(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsRequest)
operation.default CompletableFuture
<ListInvitationsResponse> listInvitations
(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) Returns a list of all invitations for the current Amazon Web Services account.default CompletableFuture
<ListInvitationsResponse> listInvitations
(ListInvitationsRequest listInvitationsRequest) Returns a list of all invitations for the current Amazon Web Services account.default ListInvitationsPublisher
listInvitationsPaginator
(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) This is a variant oflistInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)
operation.default ListInvitationsPublisher
listInvitationsPaginator
(ListInvitationsRequest listInvitationsRequest) This is a variant oflistInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)
operation.default CompletableFuture
<ListMembersResponse> listMembers
(Consumer<ListMembersRequest.Builder> listMembersRequest) Returns a list of the members in a network and properties of their configurations.default CompletableFuture
<ListMembersResponse> listMembers
(ListMembersRequest listMembersRequest) Returns a list of the members in a network and properties of their configurations.default ListMembersPublisher
listMembersPaginator
(Consumer<ListMembersRequest.Builder> listMembersRequest) This is a variant oflistMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)
operation.default ListMembersPublisher
listMembersPaginator
(ListMembersRequest listMembersRequest) This is a variant oflistMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)
operation.default CompletableFuture
<ListNetworksResponse> listNetworks
(Consumer<ListNetworksRequest.Builder> listNetworksRequest) Returns information about the networks in which the current Amazon Web Services account participates.default CompletableFuture
<ListNetworksResponse> listNetworks
(ListNetworksRequest listNetworksRequest) Returns information about the networks in which the current Amazon Web Services account participates.default ListNetworksPublisher
listNetworksPaginator
(Consumer<ListNetworksRequest.Builder> listNetworksRequest) This is a variant oflistNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)
operation.default ListNetworksPublisher
listNetworksPaginator
(ListNetworksRequest listNetworksRequest) This is a variant oflistNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)
operation.default CompletableFuture
<ListNodesResponse> listNodes
(Consumer<ListNodesRequest.Builder> listNodesRequest) Returns information about the nodes within a network.default CompletableFuture
<ListNodesResponse> listNodes
(ListNodesRequest listNodesRequest) Returns information about the nodes within a network.default ListNodesPublisher
listNodesPaginator
(Consumer<ListNodesRequest.Builder> listNodesRequest) This is a variant oflistNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)
operation.default ListNodesPublisher
listNodesPaginator
(ListNodesRequest listNodesRequest) This is a variant oflistNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)
operation.default CompletableFuture
<ListProposalsResponse> listProposals
(Consumer<ListProposalsRequest.Builder> listProposalsRequest) Returns a list of proposals for the network.default CompletableFuture
<ListProposalsResponse> listProposals
(ListProposalsRequest listProposalsRequest) Returns a list of proposals for the network.default ListProposalsPublisher
listProposalsPaginator
(Consumer<ListProposalsRequest.Builder> listProposalsRequest) This is a variant oflistProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)
operation.default ListProposalsPublisher
listProposalsPaginator
(ListProposalsRequest listProposalsRequest) This is a variant oflistProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)
operation.listProposalVotes
(Consumer<ListProposalVotesRequest.Builder> listProposalVotesRequest) Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.listProposalVotes
(ListProposalVotesRequest listProposalVotesRequest) Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.default ListProposalVotesPublisher
listProposalVotesPaginator
(Consumer<ListProposalVotesRequest.Builder> listProposalVotesRequest) This is a variant oflistProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)
operation.default ListProposalVotesPublisher
listProposalVotesPaginator
(ListProposalVotesRequest listProposalVotesRequest) This is a variant oflistProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of tags for the specified resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of tags for the specified resource.rejectInvitation
(Consumer<RejectInvitationRequest.Builder> rejectInvitationRequest) Rejects an invitation to join a network.rejectInvitation
(RejectInvitationRequest rejectInvitationRequest) Rejects an invitation to join a network.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the Amazon Managed Blockchain resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes the specified tags from the Amazon Managed Blockchain resource.default CompletableFuture
<UpdateMemberResponse> updateMember
(Consumer<UpdateMemberRequest.Builder> updateMemberRequest) Updates a member configuration with new parameters.default CompletableFuture
<UpdateMemberResponse> updateMember
(UpdateMemberRequest updateMemberRequest) Updates a member configuration with new parameters.default CompletableFuture
<UpdateNodeResponse> updateNode
(Consumer<UpdateNodeRequest.Builder> updateNodeRequest) Updates a node configuration with new parameters.default CompletableFuture
<UpdateNodeResponse> updateNode
(UpdateNodeRequest updateNodeRequest) Updates a node configuration with new parameters.default CompletableFuture
<VoteOnProposalResponse> voteOnProposal
(Consumer<VoteOnProposalRequest.Builder> voteOnProposalRequest) Casts a vote for a specifiedProposalId
on behalf of a member.default CompletableFuture
<VoteOnProposalResponse> voteOnProposal
(VoteOnProposalRequest voteOnProposalRequest) Casts a vote for a specifiedProposalId
on behalf of a member.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createAccessor
default CompletableFuture<CreateAccessorResponse> createAccessor(CreateAccessorRequest createAccessorRequest) Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access. The accessor contains information required for token based access.
- Parameters:
createAccessorRequest
-- Returns:
- A Java Future containing the result of the CreateAccessor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAccessor
default CompletableFuture<CreateAccessorResponse> createAccessor(Consumer<CreateAccessorRequest.Builder> createAccessorRequest) Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access. The accessor contains information required for token based access.
This is a convenience which creates an instance of the
CreateAccessorRequest.Builder
avoiding the need to create one manually viaCreateAccessorRequest.builder()
- Parameters:
createAccessorRequest
- AConsumer
that will call methods onCreateAccessorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateAccessor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMember
default CompletableFuture<CreateMemberResponse> createMember(CreateMemberRequest createMemberRequest) Creates a member within a Managed Blockchain network.
Applies only to Hyperledger Fabric.
- Parameters:
createMemberRequest
-- Returns:
- A Java Future containing the result of the CreateMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createMember
default CompletableFuture<CreateMemberResponse> createMember(Consumer<CreateMemberRequest.Builder> createMemberRequest) Creates a member within a Managed Blockchain network.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
CreateMemberRequest.Builder
avoiding the need to create one manually viaCreateMemberRequest.builder()
- Parameters:
createMemberRequest
- AConsumer
that will call methods onCreateMemberRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createNetwork
default CompletableFuture<CreateNetworkResponse> createNetwork(CreateNetworkRequest createNetworkRequest) Creates a new blockchain network using Amazon Managed Blockchain.
Applies only to Hyperledger Fabric.
- Parameters:
createNetworkRequest
-- Returns:
- A Java Future containing the result of the CreateNetwork operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createNetwork
default CompletableFuture<CreateNetworkResponse> createNetwork(Consumer<CreateNetworkRequest.Builder> createNetworkRequest) Creates a new blockchain network using Amazon Managed Blockchain.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
CreateNetworkRequest.Builder
avoiding the need to create one manually viaCreateNetworkRequest.builder()
- Parameters:
createNetworkRequest
- AConsumer
that will call methods onCreateNetworkRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateNetwork operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createNode
Creates a node on the specified blockchain network.
Applies to Hyperledger Fabric and Ethereum.
- Parameters:
createNodeRequest
-- Returns:
- A Java Future containing the result of the CreateNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createNode
default CompletableFuture<CreateNodeResponse> createNode(Consumer<CreateNodeRequest.Builder> createNodeRequest) Creates a node on the specified blockchain network.
Applies to Hyperledger Fabric and Ethereum.
This is a convenience which creates an instance of the
CreateNodeRequest.Builder
avoiding the need to create one manually viaCreateNodeRequest.builder()
- Parameters:
createNodeRequest
- AConsumer
that will call methods onCreateNodeRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceAlreadyExistsException A resource request is issued for a resource that already exists.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProposal
default CompletableFuture<CreateProposalResponse> createProposal(CreateProposalRequest createProposalRequest) 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.
- Parameters:
createProposalRequest
-- Returns:
- A Java Future containing the result of the CreateProposal operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProposal
default CompletableFuture<CreateProposalResponse> createProposal(Consumer<CreateProposalRequest.Builder> createProposalRequest) 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.
This is a convenience which creates an instance of the
CreateProposalRequest.Builder
avoiding the need to create one manually viaCreateProposalRequest.builder()
- Parameters:
createProposalRequest
- AConsumer
that will call methods onCreateProposalRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateProposal operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- TooManyTagsException
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAccessor
default CompletableFuture<DeleteAccessorResponse> deleteAccessor(DeleteAccessorRequest deleteAccessorRequest) Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the information required for token based access to your Ethereum nodes including, the
BILLING_TOKEN
. After an accessor is deleted, the status of the accessor changes fromAVAILABLE
toPENDING_DELETION
. An accessor in thePENDING_DELETION
state can’t be used for new WebSocket requests or HTTP requests. However, WebSocket connections that were initiated while the accessor was in theAVAILABLE
state remain open until they expire (up to 2 hours).- Parameters:
deleteAccessorRequest
-- Returns:
- A Java Future containing the result of the DeleteAccessor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAccessor
default CompletableFuture<DeleteAccessorResponse> deleteAccessor(Consumer<DeleteAccessorRequest.Builder> deleteAccessorRequest) Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the information required for token based access to your Ethereum nodes including, the
BILLING_TOKEN
. After an accessor is deleted, the status of the accessor changes fromAVAILABLE
toPENDING_DELETION
. An accessor in thePENDING_DELETION
state can’t be used for new WebSocket requests or HTTP requests. However, WebSocket connections that were initiated while the accessor was in theAVAILABLE
state remain open until they expire (up to 2 hours).
This is a convenience which creates an instance of the
DeleteAccessorRequest.Builder
avoiding the need to create one manually viaDeleteAccessorRequest.builder()
- Parameters:
deleteAccessorRequest
- AConsumer
that will call methods onDeleteAccessorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteAccessor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMember
default CompletableFuture<DeleteMemberResponse> deleteMember(DeleteMemberRequest deleteMemberRequest) Deletes a member. Deleting a member removes the member and all associated resources from the network.
DeleteMember
can only be called for a specifiedMemberId
if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, theDeleteMember
action is carried out as the result of an approved proposal to remove a member. IfMemberId
is the last member in a network specified by the last Amazon Web Services account, the network is deleted also.Applies only to Hyperledger Fabric.
- Parameters:
deleteMemberRequest
-- Returns:
- A Java Future containing the result of the DeleteMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMember
default CompletableFuture<DeleteMemberResponse> deleteMember(Consumer<DeleteMemberRequest.Builder> deleteMemberRequest) Deletes a member. Deleting a member removes the member and all associated resources from the network.
DeleteMember
can only be called for a specifiedMemberId
if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, theDeleteMember
action is carried out as the result of an approved proposal to remove a member. IfMemberId
is the last member in a network specified by the last Amazon Web Services account, the network is deleted also.Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
DeleteMemberRequest.Builder
avoiding the need to create one manually viaDeleteMemberRequest.builder()
- Parameters:
deleteMemberRequest
- AConsumer
that will call methods onDeleteMemberRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteNode
Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered.
Applies to Hyperledger Fabric and Ethereum.
- Parameters:
deleteNodeRequest
-- Returns:
- A Java Future containing the result of the DeleteNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteNode
default CompletableFuture<DeleteNodeResponse> deleteNode(Consumer<DeleteNodeRequest.Builder> deleteNodeRequest) Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered.
Applies to Hyperledger Fabric and Ethereum.
This is a convenience which creates an instance of the
DeleteNodeRequest.Builder
avoiding the need to create one manually viaDeleteNodeRequest.builder()
- Parameters:
deleteNodeRequest
- AConsumer
that will call methods onDeleteNodeRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAccessor
Returns detailed information about an accessor. An accessor object is a container that has the information required for token based access to your Ethereum nodes.
- Parameters:
getAccessorRequest
-- Returns:
- A Java Future containing the result of the GetAccessor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAccessor
default CompletableFuture<GetAccessorResponse> getAccessor(Consumer<GetAccessorRequest.Builder> getAccessorRequest) Returns detailed information about an accessor. An accessor object is a container that has the information required for token based access to your Ethereum nodes.
This is a convenience which creates an instance of the
GetAccessorRequest.Builder
avoiding the need to create one manually viaGetAccessorRequest.builder()
- Parameters:
getAccessorRequest
- AConsumer
that will call methods onGetAccessorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetAccessor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMember
Returns detailed information about a member.
Applies only to Hyperledger Fabric.
- Parameters:
getMemberRequest
-- Returns:
- A Java Future containing the result of the GetMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMember
default CompletableFuture<GetMemberResponse> getMember(Consumer<GetMemberRequest.Builder> getMemberRequest) Returns detailed information about a member.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
GetMemberRequest.Builder
avoiding the need to create one manually viaGetMemberRequest.builder()
- Parameters:
getMemberRequest
- AConsumer
that will call methods onGetMemberRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getNetwork
Returns detailed information about a network.
Applies to Hyperledger Fabric and Ethereum.
- Parameters:
getNetworkRequest
-- Returns:
- A Java Future containing the result of the GetNetwork operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getNetwork
default CompletableFuture<GetNetworkResponse> getNetwork(Consumer<GetNetworkRequest.Builder> getNetworkRequest) Returns detailed information about a network.
Applies to Hyperledger Fabric and Ethereum.
This is a convenience which creates an instance of the
GetNetworkRequest.Builder
avoiding the need to create one manually viaGetNetworkRequest.builder()
- Parameters:
getNetworkRequest
- AConsumer
that will call methods onGetNetworkRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetNetwork operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getNode
Returns detailed information about a node.
Applies to Hyperledger Fabric and Ethereum.
- Parameters:
getNodeRequest
-- Returns:
- A Java Future containing the result of the GetNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getNode
Returns detailed information about a node.
Applies to Hyperledger Fabric and Ethereum.
This is a convenience which creates an instance of the
GetNodeRequest.Builder
avoiding the need to create one manually viaGetNodeRequest.builder()
- Parameters:
getNodeRequest
- AConsumer
that will call methods onGetNodeRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProposal
Returns detailed information about a proposal.
Applies only to Hyperledger Fabric.
- Parameters:
getProposalRequest
-- Returns:
- A Java Future containing the result of the GetProposal operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProposal
default CompletableFuture<GetProposalResponse> getProposal(Consumer<GetProposalRequest.Builder> getProposalRequest) Returns detailed information about a proposal.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
GetProposalRequest.Builder
avoiding the need to create one manually viaGetProposalRequest.builder()
- Parameters:
getProposalRequest
- AConsumer
that will call methods onGetProposalRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetProposal operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessors
default CompletableFuture<ListAccessorsResponse> listAccessors(ListAccessorsRequest listAccessorsRequest) Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes.
- Parameters:
listAccessorsRequest
-- Returns:
- A Java Future containing the result of the ListAccessors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessors
default CompletableFuture<ListAccessorsResponse> listAccessors(Consumer<ListAccessorsRequest.Builder> listAccessorsRequest) Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes.
This is a convenience which creates an instance of the
ListAccessorsRequest.Builder
avoiding the need to create one manually viaListAccessorsRequest.builder()
- Parameters:
listAccessorsRequest
- AConsumer
that will call methods onListAccessorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListAccessors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessorsPaginator
This is a variant of
listAccessors(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListAccessorsPublisher publisher = client.listAccessorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListAccessorsPublisher publisher = client.listAccessorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListAccessorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessors(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsRequest)
operation.- Parameters:
listAccessorsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAccessorsPaginator
default ListAccessorsPublisher listAccessorsPaginator(Consumer<ListAccessorsRequest.Builder> listAccessorsRequest) This is a variant of
listAccessors(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListAccessorsPublisher publisher = client.listAccessorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListAccessorsPublisher publisher = client.listAccessorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListAccessorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAccessors(software.amazon.awssdk.services.managedblockchain.model.ListAccessorsRequest)
operation.
This is a convenience which creates an instance of the
ListAccessorsRequest.Builder
avoiding the need to create one manually viaListAccessorsRequest.builder()
- Parameters:
listAccessorsRequest
- AConsumer
that will call methods onListAccessorsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvitations
default CompletableFuture<ListInvitationsResponse> listInvitations(ListInvitationsRequest listInvitationsRequest) Returns a list of all invitations for the current Amazon Web Services account.
Applies only to Hyperledger Fabric.
- Parameters:
listInvitationsRequest
-- Returns:
- A Java Future containing the result of the ListInvitations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvitations
default CompletableFuture<ListInvitationsResponse> listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) Returns a list of all invitations for the current Amazon Web Services account.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
ListInvitationsRequest.Builder
avoiding the need to create one manually viaListInvitationsRequest.builder()
- Parameters:
listInvitationsRequest
- AConsumer
that will call methods onListInvitationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListInvitations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvitationsPaginator
default ListInvitationsPublisher listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest) This is a variant of
listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)
operation.- Parameters:
listInvitationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvitationsPaginator
default ListInvitationsPublisher listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) This is a variant of
listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)
operation.
This is a convenience which creates an instance of the
ListInvitationsRequest.Builder
avoiding the need to create one manually viaListInvitationsRequest.builder()
- Parameters:
listInvitationsRequest
- AConsumer
that will call methods onListInvitationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- ResourceLimitExceededException 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.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMembers
Returns a list of the members in a network and properties of their configurations.
Applies only to Hyperledger Fabric.
- Parameters:
listMembersRequest
-- Returns:
- A Java Future containing the result of the ListMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMembers
default CompletableFuture<ListMembersResponse> listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest) Returns a list of the members in a network and properties of their configurations.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
ListMembersRequest.Builder
avoiding the need to create one manually viaListMembersRequest.builder()
- Parameters:
listMembersRequest
- AConsumer
that will call methods onListMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMembersPaginator
This is a variant of
listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)
operation.- Parameters:
listMembersRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMembersPaginator
default ListMembersPublisher listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest) This is a variant of
listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)
operation.
This is a convenience which creates an instance of the
ListMembersRequest.Builder
avoiding the need to create one manually viaListMembersRequest.builder()
- Parameters:
listMembersRequest
- AConsumer
that will call methods onListMembersRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworks
default CompletableFuture<ListNetworksResponse> listNetworks(ListNetworksRequest listNetworksRequest) Returns information about the networks in which the current Amazon Web Services account participates.
Applies to Hyperledger Fabric and Ethereum.
- Parameters:
listNetworksRequest
-- Returns:
- A Java Future containing the result of the ListNetworks operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworks
default CompletableFuture<ListNetworksResponse> listNetworks(Consumer<ListNetworksRequest.Builder> listNetworksRequest) Returns information about the networks in which the current Amazon Web Services account participates.
Applies to Hyperledger Fabric and Ethereum.
This is a convenience which creates an instance of the
ListNetworksRequest.Builder
avoiding the need to create one manually viaListNetworksRequest.builder()
- Parameters:
listNetworksRequest
- AConsumer
that will call methods onListNetworksRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListNetworks operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworksPaginator
This is a variant of
listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListNetworksPublisher publisher = client.listNetworksPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksPublisher publisher = client.listNetworksPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)
operation.- Parameters:
listNetworksRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworksPaginator
default ListNetworksPublisher listNetworksPaginator(Consumer<ListNetworksRequest.Builder> listNetworksRequest) This is a variant of
listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListNetworksPublisher publisher = client.listNetworksPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksPublisher publisher = client.listNetworksPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)
operation.
This is a convenience which creates an instance of the
ListNetworksRequest.Builder
avoiding the need to create one manually viaListNetworksRequest.builder()
- Parameters:
listNetworksRequest
- AConsumer
that will call methods onListNetworksRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNodes
Returns information about the nodes within a network.
Applies to Hyperledger Fabric and Ethereum.
- Parameters:
listNodesRequest
-- Returns:
- A Java Future containing the result of the ListNodes operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNodes
default CompletableFuture<ListNodesResponse> listNodes(Consumer<ListNodesRequest.Builder> listNodesRequest) Returns information about the nodes within a network.
Applies to Hyperledger Fabric and Ethereum.
This is a convenience which creates an instance of the
ListNodesRequest.Builder
avoiding the need to create one manually viaListNodesRequest.builder()
- Parameters:
listNodesRequest
- AConsumer
that will call methods onListNodesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListNodes operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNodesPaginator
This is a variant of
listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListNodesPublisher publisher = client.listNodesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListNodesPublisher publisher = client.listNodesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)
operation.- Parameters:
listNodesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNodesPaginator
This is a variant of
listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListNodesPublisher publisher = client.listNodesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListNodesPublisher publisher = client.listNodesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)
operation.
This is a convenience which creates an instance of the
ListNodesRequest.Builder
avoiding the need to create one manually viaListNodesRequest.builder()
- Parameters:
listNodesRequest
- AConsumer
that will call methods onListNodesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposalVotes
default CompletableFuture<ListProposalVotesResponse> listProposalVotes(ListProposalVotesRequest listProposalVotesRequest) Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
Applies only to Hyperledger Fabric.
- Parameters:
listProposalVotesRequest
-- Returns:
- A Java Future containing the result of the ListProposalVotes operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposalVotes
default CompletableFuture<ListProposalVotesResponse> listProposalVotes(Consumer<ListProposalVotesRequest.Builder> listProposalVotesRequest) Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
ListProposalVotesRequest.Builder
avoiding the need to create one manually viaListProposalVotesRequest.builder()
- Parameters:
listProposalVotesRequest
- AConsumer
that will call methods onListProposalVotesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListProposalVotes operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposalVotesPaginator
default ListProposalVotesPublisher listProposalVotesPaginator(ListProposalVotesRequest listProposalVotesRequest) This is a variant of
listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesPublisher publisher = client.listProposalVotesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesPublisher publisher = client.listProposalVotesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)
operation.- Parameters:
listProposalVotesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposalVotesPaginator
default ListProposalVotesPublisher listProposalVotesPaginator(Consumer<ListProposalVotesRequest.Builder> listProposalVotesRequest) This is a variant of
listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesPublisher publisher = client.listProposalVotesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesPublisher publisher = client.listProposalVotesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)
operation.
This is a convenience which creates an instance of the
ListProposalVotesRequest.Builder
avoiding the need to create one manually viaListProposalVotesRequest.builder()
- Parameters:
listProposalVotesRequest
- AConsumer
that will call methods onListProposalVotesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposals
default CompletableFuture<ListProposalsResponse> listProposals(ListProposalsRequest listProposalsRequest) Returns a list of proposals for the network.
Applies only to Hyperledger Fabric.
- Parameters:
listProposalsRequest
-- Returns:
- A Java Future containing the result of the ListProposals operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposals
default CompletableFuture<ListProposalsResponse> listProposals(Consumer<ListProposalsRequest.Builder> listProposalsRequest) Returns a list of proposals for the network.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
ListProposalsRequest.Builder
avoiding the need to create one manually viaListProposalsRequest.builder()
- Parameters:
listProposalsRequest
- AConsumer
that will call methods onListProposalsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListProposals operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposalsPaginator
This is a variant of
listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListProposalsPublisher publisher = client.listProposalsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsPublisher publisher = client.listProposalsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)
operation.- Parameters:
listProposalsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProposalsPaginator
default ListProposalsPublisher listProposalsPaginator(Consumer<ListProposalsRequest.Builder> listProposalsRequest) This is a variant of
listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.managedblockchain.paginators.ListProposalsPublisher publisher = client.listProposalsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsPublisher publisher = client.listProposalsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)
operation.
This is a convenience which creates an instance of the
ListProposalsRequest.Builder
avoiding the need to create one manually viaListProposalsRequest.builder()
- Parameters:
listProposalsRequest
- AConsumer
that will call methods onListProposalsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of tags for the specified resource. Each tag consists of a key and optional value.
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.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of tags for the specified resource. Each tag consists of a key and optional value.
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.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
rejectInvitation
default CompletableFuture<RejectInvitationResponse> rejectInvitation(RejectInvitationRequest rejectInvitationRequest) Rejects an invitation to join a network. This action can be called by a principal in an Amazon Web Services account that has received an invitation to create a member and join a network.
Applies only to Hyperledger Fabric.
- Parameters:
rejectInvitationRequest
-- Returns:
- A Java Future containing the result of the RejectInvitation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- IllegalActionException
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
rejectInvitation
default CompletableFuture<RejectInvitationResponse> rejectInvitation(Consumer<RejectInvitationRequest.Builder> rejectInvitationRequest) Rejects an invitation to join a network. This action can be called by a principal in an Amazon Web Services account that has received an invitation to create a member and join a network.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
RejectInvitationRequest.Builder
avoiding the need to create one manually viaRejectInvitationRequest.builder()
- Parameters:
rejectInvitationRequest
- AConsumer
that will call methods onRejectInvitationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RejectInvitation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- IllegalActionException
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value.
When you specify a tag key that already exists, the tag value is overwritten with the new value. Use
UntagResource
to remove tag keys.A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.
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.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- TooManyTagsException
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value.
When you specify a tag key that already exists, the tag value is overwritten with the new value. Use
UntagResource
to remove tag keys.A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.
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.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- TooManyTagsException
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes the specified tags from the Amazon Managed Blockchain resource.
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.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the Amazon Managed Blockchain resource.
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.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ResourceNotReadyException The requested resource exists but isn't in a status that can complete the operation.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMember
default CompletableFuture<UpdateMemberResponse> updateMember(UpdateMemberRequest updateMemberRequest) Updates a member configuration with new parameters.
Applies only to Hyperledger Fabric.
- Parameters:
updateMemberRequest
-- Returns:
- A Java Future containing the result of the UpdateMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateMember
default CompletableFuture<UpdateMemberResponse> updateMember(Consumer<UpdateMemberRequest.Builder> updateMemberRequest) Updates a member configuration with new parameters.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
UpdateMemberRequest.Builder
avoiding the need to create one manually viaUpdateMemberRequest.builder()
- Parameters:
updateMemberRequest
- AConsumer
that will call methods onUpdateMemberRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateMember operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateNode
Updates a node configuration with new parameters.
Applies only to Hyperledger Fabric.
- Parameters:
updateNodeRequest
-- Returns:
- A Java Future containing the result of the UpdateNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateNode
default CompletableFuture<UpdateNodeResponse> updateNode(Consumer<UpdateNodeRequest.Builder> updateNodeRequest) Updates a node configuration with new parameters.
Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
UpdateNodeRequest.Builder
avoiding the need to create one manually viaUpdateNodeRequest.builder()
- Parameters:
updateNodeRequest
- AConsumer
that will call methods onUpdateNodeRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateNode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
voteOnProposal
default CompletableFuture<VoteOnProposalResponse> voteOnProposal(VoteOnProposalRequest voteOnProposalRequest) Casts a vote for a specified
ProposalId
on behalf of a member. The member to vote as, specified byVoterMemberId
, must be in the same Amazon Web Services account as the principal that calls the action.Applies only to Hyperledger Fabric.
- Parameters:
voteOnProposalRequest
-- Returns:
- A Java Future containing the result of the VoteOnProposal operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- IllegalActionException
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
voteOnProposal
default CompletableFuture<VoteOnProposalResponse> voteOnProposal(Consumer<VoteOnProposalRequest.Builder> voteOnProposalRequest) Casts a vote for a specified
ProposalId
on behalf of a member. The member to vote as, specified byVoterMemberId
, must be in the same Amazon Web Services account as the principal that calls the action.Applies only to Hyperledger Fabric.
This is a convenience which creates an instance of the
VoteOnProposalRequest.Builder
avoiding the need to create one manually viaVoteOnProposalRequest.builder()
- Parameters:
voteOnProposalRequest
- AConsumer
that will call methods onVoteOnProposalRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the VoteOnProposal operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidRequestException The action or operation requested is invalid. Verify that the action is typed correctly.
- IllegalActionException
- AccessDeniedException You don't have sufficient access to perform this action.
- ResourceNotFoundException A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
- ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
- InternalServiceErrorException The request processing has failed because of an unknown error, exception or failure.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- ManagedBlockchainException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aManagedBlockchainAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aManagedBlockchainAsyncClient
.
-