/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the managedblockchain-2018-09-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.ManagedBlockchain.Model;
using Amazon.ManagedBlockchain.Model.Internal.MarshallTransformations;
using Amazon.ManagedBlockchain.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ManagedBlockchain
{
///
/// Implementation for accessing ManagedBlockchain
///
/// 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.
///
///
public partial class AmazonManagedBlockchainClient : AmazonServiceClient, IAmazonManagedBlockchain
{
private static IServiceMetadata serviceMetadata = new AmazonManagedBlockchainMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IManagedBlockchainPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IManagedBlockchainPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ManagedBlockchainPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonManagedBlockchainClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonManagedBlockchainClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonManagedBlockchainConfig()) { }
///
/// Constructs AmazonManagedBlockchainClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonManagedBlockchainClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonManagedBlockchainConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonManagedBlockchainClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonManagedBlockchainClient Configuration Object
public AmazonManagedBlockchainClient(AmazonManagedBlockchainConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonManagedBlockchainClient with AWS Credentials
///
/// AWS Credentials
public AmazonManagedBlockchainClient(AWSCredentials credentials)
: this(credentials, new AmazonManagedBlockchainConfig())
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonManagedBlockchainClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonManagedBlockchainConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Credentials and an
/// AmazonManagedBlockchainClient Configuration object.
///
/// AWS Credentials
/// The AmazonManagedBlockchainClient Configuration Object
public AmazonManagedBlockchainClient(AWSCredentials credentials, AmazonManagedBlockchainConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonManagedBlockchainClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonManagedBlockchainConfig())
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonManagedBlockchainClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonManagedBlockchainConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonManagedBlockchainClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonManagedBlockchainClient Configuration Object
public AmazonManagedBlockchainClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonManagedBlockchainConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonManagedBlockchainClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonManagedBlockchainConfig())
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonManagedBlockchainClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonManagedBlockchainConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonManagedBlockchainClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonManagedBlockchainClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonManagedBlockchainClient Configuration Object
public AmazonManagedBlockchainClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonManagedBlockchainConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonManagedBlockchainEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateAccessor
///
/// Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor
/// contains information required for token based access to your Ethereum nodes.
///
/// Container for the necessary parameters to execute the CreateAccessor service method.
///
/// The response from the CreateAccessor service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A resource request is issued for a resource that already exists.
///
///
/// 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.
///
///
/// 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.
///
///
///
///
/// REST API Reference for CreateAccessor Operation
public virtual CreateAccessorResponse CreateAccessor(CreateAccessorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateAccessor operation.
///
///
/// Container for the necessary parameters to execute the CreateAccessor operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAccessor
/// operation.
/// REST API Reference for CreateAccessor Operation
public virtual IAsyncResult BeginCreateAccessor(CreateAccessorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateAccessor operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateAccessor.
///
/// Returns a CreateAccessorResult from ManagedBlockchain.
/// REST API Reference for CreateAccessor Operation
public virtual CreateAccessorResponse EndCreateAccessor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateMember
///
/// Creates a member within a Managed Blockchain network.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the CreateMember service method.
///
/// The response from the CreateMember service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A resource request is issued for a resource that already exists.
///
///
/// 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.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
///
/// 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.
///
///
///
///
/// REST API Reference for CreateMember Operation
public virtual CreateMemberResponse CreateMember(CreateMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateMember operation.
///
///
/// Container for the necessary parameters to execute the CreateMember operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateMember
/// operation.
/// REST API Reference for CreateMember Operation
public virtual IAsyncResult BeginCreateMember(CreateMemberRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMemberResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateMember operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateMember.
///
/// Returns a CreateMemberResult from ManagedBlockchain.
/// REST API Reference for CreateMember Operation
public virtual CreateMemberResponse EndCreateMember(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateNetwork
///
/// Creates a new blockchain network using Amazon Managed Blockchain.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the CreateNetwork service method.
///
/// The response from the CreateNetwork service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A resource request is issued for a resource that already exists.
///
///
/// 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.
///
///
/// 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.
///
///
///
///
/// REST API Reference for CreateNetwork Operation
public virtual CreateNetworkResponse CreateNetwork(CreateNetworkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateNetworkRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateNetworkResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateNetwork operation.
///
///
/// Container for the necessary parameters to execute the CreateNetwork operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNetwork
/// operation.
/// REST API Reference for CreateNetwork Operation
public virtual IAsyncResult BeginCreateNetwork(CreateNetworkRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateNetworkRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateNetworkResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateNetwork operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateNetwork.
///
/// Returns a CreateNetworkResult from ManagedBlockchain.
/// REST API Reference for CreateNetwork Operation
public virtual CreateNetworkResponse EndCreateNetwork(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateNode
///
/// Creates a node on the specified blockchain network.
///
///
///
/// Applies to Hyperledger Fabric and Ethereum.
///
///
/// Container for the necessary parameters to execute the CreateNode service method.
///
/// The response from the CreateNode service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A resource request is issued for a resource that already exists.
///
///
/// 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.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
///
/// 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.
///
///
///
///
/// REST API Reference for CreateNode Operation
public virtual CreateNodeResponse CreateNode(CreateNodeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateNodeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateNode operation.
///
///
/// Container for the necessary parameters to execute the CreateNode operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNode
/// operation.
/// REST API Reference for CreateNode Operation
public virtual IAsyncResult BeginCreateNode(CreateNodeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateNodeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateNode operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateNode.
///
/// Returns a CreateNodeResult from ManagedBlockchain.
/// REST API Reference for CreateNode Operation
public virtual CreateNodeResponse EndCreateNode(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateProposal
///
/// 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.
///
///
/// Container for the necessary parameters to execute the CreateProposal service method.
///
/// The response from the CreateProposal service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
///
/// 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.
///
///
///
///
/// REST API Reference for CreateProposal Operation
public virtual CreateProposalResponse CreateProposal(CreateProposalRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProposalRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateProposal operation.
///
///
/// Container for the necessary parameters to execute the CreateProposal operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateProposal
/// operation.
/// REST API Reference for CreateProposal Operation
public virtual IAsyncResult BeginCreateProposal(CreateProposalRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProposalRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateProposal operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateProposal.
///
/// Returns a CreateProposalResult from ManagedBlockchain.
/// REST API Reference for CreateProposal Operation
public virtual CreateProposalResponse EndCreateProposal(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteAccessor
///
/// 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 from AVAILABLE
to PENDING_DELETION
.
/// An accessor in the PENDING_DELETION
state can’t be used for new WebSocket
/// requests or HTTP requests. However, WebSocket connections that were initiated while
/// the accessor was in the AVAILABLE
state remain open until they expire
/// (up to 2 hours).
///
/// Container for the necessary parameters to execute the DeleteAccessor service method.
///
/// The response from the DeleteAccessor service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for DeleteAccessor Operation
public virtual DeleteAccessorResponse DeleteAccessor(DeleteAccessorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAccessorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAccessorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteAccessor operation.
///
///
/// Container for the necessary parameters to execute the DeleteAccessor operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAccessor
/// operation.
/// REST API Reference for DeleteAccessor Operation
public virtual IAsyncResult BeginDeleteAccessor(DeleteAccessorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAccessorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAccessorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteAccessor operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteAccessor.
///
/// Returns a DeleteAccessorResult from ManagedBlockchain.
/// REST API Reference for DeleteAccessor Operation
public virtual DeleteAccessorResponse EndDeleteAccessor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteMember
///
/// Deletes a member. Deleting a member removes the member and all associated resources
/// from the network. DeleteMember
can only be called for a specified MemberId
/// if the principal performing the action is associated with the Amazon Web Services
/// account that owns the member. In all other cases, the DeleteMember
action
/// is carried out as the result of an approved proposal to remove a member. If MemberId
/// is the last member in a network specified by the last Amazon Web Services account,
/// the network is deleted also.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the DeleteMember service method.
///
/// The response from the DeleteMember service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
///
/// 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.
///
/// REST API Reference for DeleteMember Operation
public virtual DeleteMemberResponse DeleteMember(DeleteMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteMember operation.
///
///
/// Container for the necessary parameters to execute the DeleteMember operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMember
/// operation.
/// REST API Reference for DeleteMember Operation
public virtual IAsyncResult BeginDeleteMember(DeleteMemberRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteMember operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteMember.
///
/// Returns a DeleteMemberResult from ManagedBlockchain.
/// REST API Reference for DeleteMember Operation
public virtual DeleteMemberResponse EndDeleteMember(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region 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.
///
///
/// Container for the necessary parameters to execute the DeleteNode service method.
///
/// The response from the DeleteNode service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
///
/// 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.
///
/// REST API Reference for DeleteNode Operation
public virtual DeleteNodeResponse DeleteNode(DeleteNodeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteNodeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteNode operation.
///
///
/// Container for the necessary parameters to execute the DeleteNode operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNode
/// operation.
/// REST API Reference for DeleteNode Operation
public virtual IAsyncResult BeginDeleteNode(DeleteNodeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteNodeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteNode operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteNode.
///
/// Returns a DeleteNodeResult from ManagedBlockchain.
/// REST API Reference for DeleteNode Operation
public virtual DeleteNodeResponse EndDeleteNode(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region 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.
///
/// Container for the necessary parameters to execute the GetAccessor service method.
///
/// The response from the GetAccessor service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for GetAccessor Operation
public virtual GetAccessorResponse GetAccessor(GetAccessorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetAccessor operation.
///
///
/// Container for the necessary parameters to execute the GetAccessor operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccessor
/// operation.
/// REST API Reference for GetAccessor Operation
public virtual IAsyncResult BeginGetAccessor(GetAccessorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetAccessor operation.
///
///
/// The IAsyncResult returned by the call to BeginGetAccessor.
///
/// Returns a GetAccessorResult from ManagedBlockchain.
/// REST API Reference for GetAccessor Operation
public virtual GetAccessorResponse EndGetAccessor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetMember
///
/// Returns detailed information about a member.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the GetMember service method.
///
/// The response from the GetMember service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for GetMember Operation
public virtual GetMemberResponse GetMember(GetMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetMember operation.
///
///
/// Container for the necessary parameters to execute the GetMember operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMember
/// operation.
/// REST API Reference for GetMember Operation
public virtual IAsyncResult BeginGetMember(GetMemberRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMemberResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetMember operation.
///
///
/// The IAsyncResult returned by the call to BeginGetMember.
///
/// Returns a GetMemberResult from ManagedBlockchain.
/// REST API Reference for GetMember Operation
public virtual GetMemberResponse EndGetMember(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetNetwork
///
/// Returns detailed information about a network.
///
///
///
/// Applies to Hyperledger Fabric and Ethereum.
///
///
/// Container for the necessary parameters to execute the GetNetwork service method.
///
/// The response from the GetNetwork service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for GetNetwork Operation
public virtual GetNetworkResponse GetNetwork(GetNetworkRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetNetworkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetNetworkResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetNetwork operation.
///
///
/// Container for the necessary parameters to execute the GetNetwork operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetNetwork
/// operation.
/// REST API Reference for GetNetwork Operation
public virtual IAsyncResult BeginGetNetwork(GetNetworkRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetNetworkRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetNetworkResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetNetwork operation.
///
///
/// The IAsyncResult returned by the call to BeginGetNetwork.
///
/// Returns a GetNetworkResult from ManagedBlockchain.
/// REST API Reference for GetNetwork Operation
public virtual GetNetworkResponse EndGetNetwork(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetNode
///
/// Returns detailed information about a node.
///
///
///
/// Applies to Hyperledger Fabric and Ethereum.
///
///
/// Container for the necessary parameters to execute the GetNode service method.
///
/// The response from the GetNode service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for GetNode Operation
public virtual GetNodeResponse GetNode(GetNodeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetNodeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetNode operation.
///
///
/// Container for the necessary parameters to execute the GetNode operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetNode
/// operation.
/// REST API Reference for GetNode Operation
public virtual IAsyncResult BeginGetNode(GetNodeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetNodeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetNode operation.
///
///
/// The IAsyncResult returned by the call to BeginGetNode.
///
/// Returns a GetNodeResult from ManagedBlockchain.
/// REST API Reference for GetNode Operation
public virtual GetNodeResponse EndGetNode(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetProposal
///
/// Returns detailed information about a proposal.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the GetProposal service method.
///
/// The response from the GetProposal service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for GetProposal Operation
public virtual GetProposalResponse GetProposal(GetProposalRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetProposalRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetProposalResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetProposal operation.
///
///
/// Container for the necessary parameters to execute the GetProposal operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetProposal
/// operation.
/// REST API Reference for GetProposal Operation
public virtual IAsyncResult BeginGetProposal(GetProposalRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetProposalRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetProposalResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetProposal operation.
///
///
/// The IAsyncResult returned by the call to BeginGetProposal.
///
/// Returns a GetProposalResult from ManagedBlockchain.
/// REST API Reference for GetProposal Operation
public virtual GetProposalResponse EndGetProposal(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListAccessors
///
/// 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.
///
/// Container for the necessary parameters to execute the ListAccessors service method.
///
/// The response from the ListAccessors service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// 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.
///
/// REST API Reference for ListAccessors Operation
public virtual ListAccessorsResponse ListAccessors(ListAccessorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListAccessors operation.
///
///
/// Container for the necessary parameters to execute the ListAccessors operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAccessors
/// operation.
/// REST API Reference for ListAccessors Operation
public virtual IAsyncResult BeginListAccessors(ListAccessorsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessorsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListAccessors operation.
///
///
/// The IAsyncResult returned by the call to BeginListAccessors.
///
/// Returns a ListAccessorsResult from ManagedBlockchain.
/// REST API Reference for ListAccessors Operation
public virtual ListAccessorsResponse EndListAccessors(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListInvitations
///
/// Returns a list of all invitations for the current Amazon Web Services account.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the ListInvitations service method.
///
/// The response from the ListInvitations service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// 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.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for ListInvitations Operation
public virtual ListInvitationsResponse ListInvitations(ListInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListInvitations operation.
///
///
/// Container for the necessary parameters to execute the ListInvitations operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListInvitations
/// operation.
/// REST API Reference for ListInvitations Operation
public virtual IAsyncResult BeginListInvitations(ListInvitationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListInvitations operation.
///
///
/// The IAsyncResult returned by the call to BeginListInvitations.
///
/// Returns a ListInvitationsResult from ManagedBlockchain.
/// REST API Reference for ListInvitations Operation
public virtual ListInvitationsResponse EndListInvitations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListMembers
///
/// Returns a list of the members in a network and properties of their configurations.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the ListMembers service method.
///
/// The response from the ListMembers service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// 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.
///
/// REST API Reference for ListMembers Operation
public virtual ListMembersResponse ListMembers(ListMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListMembers operation.
///
///
/// Container for the necessary parameters to execute the ListMembers operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMembers
/// operation.
/// REST API Reference for ListMembers Operation
public virtual IAsyncResult BeginListMembers(ListMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginListMembers.
///
/// Returns a ListMembersResult from ManagedBlockchain.
/// REST API Reference for ListMembers Operation
public virtual ListMembersResponse EndListMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListNetworks
///
/// Returns information about the networks in which the current Amazon Web Services account
/// participates.
///
///
///
/// Applies to Hyperledger Fabric and Ethereum.
///
///
/// Container for the necessary parameters to execute the ListNetworks service method.
///
/// The response from the ListNetworks service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// 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.
///
/// REST API Reference for ListNetworks Operation
public virtual ListNetworksResponse ListNetworks(ListNetworksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListNetworksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListNetworksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListNetworks operation.
///
///
/// Container for the necessary parameters to execute the ListNetworks operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNetworks
/// operation.
/// REST API Reference for ListNetworks Operation
public virtual IAsyncResult BeginListNetworks(ListNetworksRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListNetworksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListNetworksResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListNetworks operation.
///
///
/// The IAsyncResult returned by the call to BeginListNetworks.
///
/// Returns a ListNetworksResult from ManagedBlockchain.
/// REST API Reference for ListNetworks Operation
public virtual ListNetworksResponse EndListNetworks(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListNodes
///
/// Returns information about the nodes within a network.
///
///
///
/// Applies to Hyperledger Fabric and Ethereum.
///
///
/// Container for the necessary parameters to execute the ListNodes service method.
///
/// The response from the ListNodes service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// 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.
///
/// REST API Reference for ListNodes Operation
public virtual ListNodesResponse ListNodes(ListNodesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListNodesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListNodes operation.
///
///
/// Container for the necessary parameters to execute the ListNodes operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListNodes
/// operation.
/// REST API Reference for ListNodes Operation
public virtual IAsyncResult BeginListNodes(ListNodesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListNodesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListNodes operation.
///
///
/// The IAsyncResult returned by the call to BeginListNodes.
///
/// Returns a ListNodesResult from ManagedBlockchain.
/// REST API Reference for ListNodes Operation
public virtual ListNodesResponse EndListNodes(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListProposals
///
/// Returns a list of proposals for the network.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the ListProposals service method.
///
/// The response from the ListProposals service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for ListProposals Operation
public virtual ListProposalsResponse ListProposals(ListProposalsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProposalsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProposalsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListProposals operation.
///
///
/// Container for the necessary parameters to execute the ListProposals operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProposals
/// operation.
/// REST API Reference for ListProposals Operation
public virtual IAsyncResult BeginListProposals(ListProposalsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProposalsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProposalsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListProposals operation.
///
///
/// The IAsyncResult returned by the call to BeginListProposals.
///
/// Returns a ListProposalsResult from ManagedBlockchain.
/// REST API Reference for ListProposals Operation
public virtual ListProposalsResponse EndListProposals(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListProposalVotes
///
/// 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.
///
///
/// Container for the necessary parameters to execute the ListProposalVotes service method.
///
/// The response from the ListProposalVotes service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// 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.
///
/// REST API Reference for ListProposalVotes Operation
public virtual ListProposalVotesResponse ListProposalVotes(ListProposalVotesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListProposalVotes operation.
///
///
/// Container for the necessary parameters to execute the ListProposalVotes operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProposalVotes
/// operation.
/// REST API Reference for ListProposalVotes Operation
public virtual IAsyncResult BeginListProposalVotes(ListProposalVotesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListProposalVotes operation.
///
///
/// The IAsyncResult returned by the call to BeginListProposalVotes.
///
/// Returns a ListProposalVotesResult from ManagedBlockchain.
/// REST API Reference for ListProposalVotes Operation
public virtual ListProposalVotesResponse EndListProposalVotes(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// 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.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by ManagedBlockchain.
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTagsForResource operation.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from ManagedBlockchain.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region RejectInvitation
///
/// 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.
///
///
/// Container for the necessary parameters to execute the RejectInvitation service method.
///
/// The response from the RejectInvitation service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
///
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for RejectInvitation Operation
public virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the RejectInvitation operation.
///
///
/// Container for the necessary parameters to execute the RejectInvitation operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRejectInvitation
/// operation.
/// REST API Reference for RejectInvitation Operation
public virtual IAsyncResult BeginRejectInvitation(RejectInvitationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the RejectInvitation operation.
///
///
/// The IAsyncResult returned by the call to BeginRejectInvitation.
///
/// Returns a RejectInvitationResult from ManagedBlockchain.
/// REST API Reference for RejectInvitation Operation
public virtual RejectInvitationResponse EndRejectInvitation(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region 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.
///
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by ManagedBlockchain.
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
///
///
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the TagResource operation.
///
///
/// Container for the necessary parameters to execute the TagResource operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from ManagedBlockchain.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// 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.
///
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by ManagedBlockchain.
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// The requested resource exists but isn't in a status that can complete the operation.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UntagResource operation.
///
///
/// Container for the necessary parameters to execute the UntagResource operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from ManagedBlockchain.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateMember
///
/// Updates a member configuration with new parameters.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the UpdateMember service method.
///
/// The response from the UpdateMember service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for UpdateMember Operation
public virtual UpdateMemberResponse UpdateMember(UpdateMemberRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMemberResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateMember operation.
///
///
/// Container for the necessary parameters to execute the UpdateMember operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateMember
/// operation.
/// REST API Reference for UpdateMember Operation
public virtual IAsyncResult BeginUpdateMember(UpdateMemberRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMemberRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMemberResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateMember operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateMember.
///
/// Returns a UpdateMemberResult from ManagedBlockchain.
/// REST API Reference for UpdateMember Operation
public virtual UpdateMemberResponse EndUpdateMember(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateNode
///
/// Updates a node configuration with new parameters.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the UpdateNode service method.
///
/// The response from the UpdateNode service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for UpdateNode Operation
public virtual UpdateNodeResponse UpdateNode(UpdateNodeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateNode operation.
///
///
/// Container for the necessary parameters to execute the UpdateNode operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateNode
/// operation.
/// REST API Reference for UpdateNode Operation
public virtual IAsyncResult BeginUpdateNode(UpdateNodeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateNode operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateNode.
///
/// Returns a UpdateNodeResult from ManagedBlockchain.
/// REST API Reference for UpdateNode Operation
public virtual UpdateNodeResponse EndUpdateNode(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region VoteOnProposal
///
/// Casts a vote for a specified ProposalId
on behalf of a member. The member
/// to vote as, specified by VoterMemberId
, must be in the same Amazon Web
/// Services account as the principal that calls the action.
///
///
///
/// Applies only to Hyperledger Fabric.
///
///
/// Container for the necessary parameters to execute the VoteOnProposal service method.
///
/// The response from the VoteOnProposal service method, as returned by ManagedBlockchain.
///
/// You don't have sufficient access to perform this action.
///
///
///
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
///
/// The action or operation requested is invalid. Verify that the action is typed correctly.
///
///
/// A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
///
///
/// 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.
///
/// REST API Reference for VoteOnProposal Operation
public virtual VoteOnProposalResponse VoteOnProposal(VoteOnProposalRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = VoteOnProposalRequestMarshaller.Instance;
options.ResponseUnmarshaller = VoteOnProposalResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the VoteOnProposal operation.
///
///
/// Container for the necessary parameters to execute the VoteOnProposal operation on AmazonManagedBlockchainClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndVoteOnProposal
/// operation.
/// REST API Reference for VoteOnProposal Operation
public virtual IAsyncResult BeginVoteOnProposal(VoteOnProposalRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = VoteOnProposalRequestMarshaller.Instance;
options.ResponseUnmarshaller = VoteOnProposalResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the VoteOnProposal operation.
///
///
/// The IAsyncResult returned by the call to BeginVoteOnProposal.
///
/// Returns a VoteOnProposalResult from ManagedBlockchain.
/// REST API Reference for VoteOnProposal Operation
public virtual VoteOnProposalResponse EndVoteOnProposal(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}