/* * 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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; 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(); #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 #if 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 Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. 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 internal virtual CreateAccessorResponse CreateAccessor(CreateAccessorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAccessorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAccessorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateAccessorAsync(CreateAccessorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAccessorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAccessorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateMember internal virtual CreateMemberResponse CreateMember(CreateMemberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMemberResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a member within a Managed Blockchain network. /// /// /// /// Applies only to Hyperledger Fabric. /// /// /// Container for the necessary parameters to execute the CreateMember service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateMemberAsync(CreateMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMemberResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateNetwork internal virtual CreateNetworkResponse CreateNetwork(CreateNetworkRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNetworkRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNetworkResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateNetworkAsync(CreateNetworkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNetworkRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNetworkResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateNode internal virtual CreateNodeResponse CreateNode(CreateNodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateNodeAsync(CreateNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateNodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProposal internal virtual CreateProposalResponse CreateProposal(CreateProposalRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateProposalAsync(CreateProposalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAccessor internal virtual DeleteAccessorResponse DeleteAccessor(DeleteAccessorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAccessorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAccessorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteAccessorAsync(DeleteAccessorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAccessorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAccessorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteMember internal virtual DeleteMemberResponse DeleteMember(DeleteMemberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteMemberAsync(DeleteMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteNode internal virtual DeleteNodeResponse DeleteNode(DeleteNodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteNodeAsync(DeleteNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAccessor internal virtual GetAccessorResponse GetAccessor(GetAccessorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccessorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccessorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task GetAccessorAsync(GetAccessorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccessorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccessorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMember internal virtual GetMemberResponse GetMember(GetMemberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMemberResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns detailed information about a member. /// /// /// /// Applies only to Hyperledger Fabric. /// /// /// Container for the necessary parameters to execute the GetMember service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task GetMemberAsync(GetMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMemberResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetNetwork internal virtual GetNetworkResponse GetNetwork(GetNetworkRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNetworkRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNetworkResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns detailed information about a network. /// /// /// /// Applies to Hyperledger Fabric and Ethereum. /// /// /// Container for the necessary parameters to execute the GetNetwork service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task GetNetworkAsync(GetNetworkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNetworkRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNetworkResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetNode internal virtual GetNodeResponse GetNode(GetNodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns detailed information about a node. /// /// /// /// Applies to Hyperledger Fabric and Ethereum. /// /// /// Container for the necessary parameters to execute the GetNode service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task GetNodeAsync(GetNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetNodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetProposal internal virtual GetProposalResponse GetProposal(GetProposalRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = GetProposalResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns detailed information about a proposal. /// /// /// /// Applies only to Hyperledger Fabric. /// /// /// Container for the necessary parameters to execute the GetProposal service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task GetProposalAsync(GetProposalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = GetProposalResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAccessors internal virtual ListAccessorsResponse ListAccessors(ListAccessorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListAccessorsAsync(ListAccessorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListInvitations internal virtual ListInvitationsResponse ListInvitations(ListInvitationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListInvitationsAsync(ListInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListMembers internal virtual ListMembersResponse ListMembers(ListMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListMembersAsync(ListMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListNetworks internal virtual ListNetworksResponse ListNetworks(ListNetworksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNetworksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNetworksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListNetworksAsync(ListNetworksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNetworksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNetworksResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListNodes internal virtual ListNodesResponse ListNodes(ListNodesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListNodesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListNodesAsync(ListNodesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListNodesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProposals internal virtual ListProposalsResponse ListProposals(ListProposalsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProposalsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProposalsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of proposals for the network. /// /// /// /// Applies only to Hyperledger Fabric. /// /// /// Container for the necessary parameters to execute the ListProposals service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListProposalsAsync(ListProposalsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProposalsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProposalsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProposalVotes internal virtual ListProposalVotesResponse ListProposalVotes(ListProposalVotesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListProposalVotesAsync(ListProposalVotesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RejectInvitation internal virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task RejectInvitationAsync(RejectInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateMember internal virtual UpdateMemberResponse UpdateMember(UpdateMemberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMemberResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a member configuration with new parameters. /// /// /// /// Applies only to Hyperledger Fabric. /// /// /// Container for the necessary parameters to execute the UpdateMember service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateMemberAsync(UpdateMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMemberResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateNode internal virtual UpdateNodeResponse UpdateNode(UpdateNodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a node configuration with new parameters. /// /// /// /// Applies only to Hyperledger Fabric. /// /// /// Container for the necessary parameters to execute the UpdateNode service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateNodeAsync(UpdateNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region VoteOnProposal internal virtual VoteOnProposalResponse VoteOnProposal(VoteOnProposalRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = VoteOnProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = VoteOnProposalResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task VoteOnProposalAsync(VoteOnProposalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = VoteOnProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = VoteOnProposalResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }