/* * 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 dax-2017-04-19.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.DAX.Model; using Amazon.DAX.Model.Internal.MarshallTransformations; using Amazon.DAX.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.DAX { /// /// Implementation for accessing DAX /// /// DAX is a managed caching service engineered for Amazon DynamoDB. DAX dramatically /// speeds up database reads by caching frequently-accessed data from DynamoDB, so applications /// can access that data with sub-millisecond latency. You can create a DAX cluster easily, /// using the AWS Management Console. With a few simple modifications to your code, your /// application can begin taking advantage of the DAX cluster and realize significant /// improvements in read performance. /// public partial class AmazonDAXClient : AmazonServiceClient, IAmazonDAX { private static IServiceMetadata serviceMetadata = new AmazonDAXMetadata(); #region Constructors /// /// Constructs AmazonDAXClient 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 AmazonDAXClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonDAXConfig()) { } /// /// Constructs AmazonDAXClient 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 AmazonDAXClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonDAXConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonDAXClient 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 AmazonDAXClient Configuration Object public AmazonDAXClient(AmazonDAXConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonDAXClient with AWS Credentials /// /// AWS Credentials public AmazonDAXClient(AWSCredentials credentials) : this(credentials, new AmazonDAXConfig()) { } /// /// Constructs AmazonDAXClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonDAXClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonDAXConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonDAXClient with AWS Credentials and an /// AmazonDAXClient Configuration object. /// /// AWS Credentials /// The AmazonDAXClient Configuration Object public AmazonDAXClient(AWSCredentials credentials, AmazonDAXConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonDAXClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonDAXClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonDAXConfig()) { } /// /// Constructs AmazonDAXClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonDAXClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonDAXConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonDAXClient with AWS Access Key ID, AWS Secret Key and an /// AmazonDAXClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonDAXClient Configuration Object public AmazonDAXClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonDAXConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonDAXClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonDAXClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDAXConfig()) { } /// /// Constructs AmazonDAXClient 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 AmazonDAXClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDAXConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonDAXClient with AWS Access Key ID, AWS Secret Key and an /// AmazonDAXClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonDAXClient Configuration Object public AmazonDAXClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonDAXConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #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 AmazonDAXEndpointResolver()); } /// /// 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 CreateCluster internal virtual CreateClusterResponse CreateCluster(CreateClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a DAX cluster. All nodes in the cluster run the same DAX caching software. /// /// Container for the necessary parameters to execute the CreateCluster service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCluster service method, as returned by DAX. /// /// You already have a DAX cluster with the given identifier. /// /// /// You have attempted to exceed the maximum number of DAX clusters for your AWS account. /// /// /// There are not enough system resources to create the cluster you requested (or to resize /// an already-existing cluster). /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// One or more parameters in a parameter group are in an invalid state. /// /// /// The value for a parameter is invalid. /// /// /// The VPC network is in an invalid state. /// /// /// You have attempted to exceed the maximum number of nodes for a DAX cluster. /// /// /// You have attempted to exceed the maximum number of nodes for your AWS account. /// /// /// The specified parameter group does not exist. /// /// /// The specified service linked role (SLR) was not found. /// /// /// You have reached the maximum number of x509 certificates that can be created for encrypted /// clusters in a 30 day period. Contact AWS customer support to discuss options for continuing /// to create encrypted clusters. /// /// /// The requested subnet group name does not refer to an existing subnet group. /// /// /// You have exceeded the maximum number of tags for this DAX cluster. /// /// REST API Reference for CreateCluster Operation public virtual Task CreateClusterAsync(CreateClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateParameterGroup internal virtual CreateParameterGroupResponse CreateParameterGroup(CreateParameterGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateParameterGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateParameterGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new parameter group. A parameter group is a collection of parameters that /// you apply to all of the nodes in a DAX cluster. /// /// Container for the necessary parameters to execute the CreateParameterGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateParameterGroup service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// One or more parameters in a parameter group are in an invalid state. /// /// /// The value for a parameter is invalid. /// /// /// The specified parameter group already exists. /// /// /// You have attempted to exceed the maximum number of parameter groups. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for CreateParameterGroup Operation public virtual Task CreateParameterGroupAsync(CreateParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateParameterGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateParameterGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateSubnetGroup internal virtual CreateSubnetGroupResponse CreateSubnetGroup(CreateSubnetGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubnetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubnetGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new subnet group. /// /// Container for the necessary parameters to execute the CreateSubnetGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateSubnetGroup service method, as returned by DAX. /// /// An invalid subnet identifier was specified. /// /// /// The specified service linked role (SLR) was not found. /// /// /// The specified subnet group already exists. /// /// /// The request cannot be processed because it would exceed the allowed number of subnets /// in a subnet group. /// /// /// The request cannot be processed because it would exceed the allowed number of subnets /// in a subnet group. /// /// REST API Reference for CreateSubnetGroup Operation public virtual Task CreateSubnetGroupAsync(CreateSubnetGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSubnetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSubnetGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DecreaseReplicationFactor internal virtual DecreaseReplicationFactorResponse DecreaseReplicationFactor(DecreaseReplicationFactorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DecreaseReplicationFactorRequestMarshaller.Instance; options.ResponseUnmarshaller = DecreaseReplicationFactorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes one or more nodes from a DAX cluster. /// /// /// /// You cannot use DecreaseReplicationFactor to remove the last node in a /// DAX cluster. If you need to do this, use DeleteCluster instead. /// /// /// /// Container for the necessary parameters to execute the DecreaseReplicationFactor service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DecreaseReplicationFactor service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// None of the nodes in the cluster have the given node ID. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DecreaseReplicationFactor Operation public virtual Task DecreaseReplicationFactorAsync(DecreaseReplicationFactorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DecreaseReplicationFactorRequestMarshaller.Instance; options.ResponseUnmarshaller = DecreaseReplicationFactorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCluster internal virtual DeleteClusterResponse DeleteCluster(DeleteClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a previously provisioned DAX cluster. DeleteCluster deletes all associated /// nodes, node endpoints and the DAX cluster itself. When you receive a successful response /// from this action, DAX immediately begins deleting the cluster; you cannot cancel or /// revert this action. /// /// Container for the necessary parameters to execute the DeleteCluster service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCluster service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DeleteCluster Operation public virtual Task DeleteClusterAsync(DeleteClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteParameterGroup internal virtual DeleteParameterGroupResponse DeleteParameterGroup(DeleteParameterGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteParameterGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteParameterGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified parameter group. You cannot delete a parameter group if it is /// associated with any DAX clusters. /// /// Container for the necessary parameters to execute the DeleteParameterGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteParameterGroup service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// One or more parameters in a parameter group are in an invalid state. /// /// /// The value for a parameter is invalid. /// /// /// The specified parameter group does not exist. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DeleteParameterGroup Operation public virtual Task DeleteParameterGroupAsync(DeleteParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteParameterGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteParameterGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteSubnetGroup internal virtual DeleteSubnetGroupResponse DeleteSubnetGroup(DeleteSubnetGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubnetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubnetGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a subnet group. /// /// /// /// You cannot delete a subnet group if it is associated with any DAX clusters. /// /// /// /// Container for the necessary parameters to execute the DeleteSubnetGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteSubnetGroup service method, as returned by DAX. /// /// The specified service linked role (SLR) was not found. /// /// /// The specified subnet group is currently in use. /// /// /// The requested subnet group name does not refer to an existing subnet group. /// /// REST API Reference for DeleteSubnetGroup Operation public virtual Task DeleteSubnetGroupAsync(DeleteSubnetGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSubnetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSubnetGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeClusters internal virtual DescribeClustersResponse DescribeClusters(DescribeClustersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeClustersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeClustersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about all provisioned DAX clusters if no cluster identifier is /// specified, or about a specific DAX cluster if a cluster identifier is supplied. /// /// /// /// If the cluster is in the CREATING state, only cluster level information will be displayed /// until all of the nodes are successfully provisioned. /// /// /// /// If the cluster is in the DELETING state, only cluster level information will be displayed. /// /// /// /// If nodes are currently being added to the DAX cluster, node endpoint information and /// creation time for the additional nodes will not be displayed until they are completely /// provisioned. When the DAX cluster state is available, the cluster is ready /// for use. /// /// /// /// If nodes are currently being removed from the DAX cluster, no endpoint information /// for the removed nodes is displayed. /// /// /// Container for the necessary parameters to execute the DescribeClusters service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeClusters service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DescribeClusters Operation public virtual Task DescribeClustersAsync(DescribeClustersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeClustersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeClustersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDefaultParameters internal virtual DescribeDefaultParametersResponse DescribeDefaultParameters(DescribeDefaultParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDefaultParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDefaultParametersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the default system parameter information for the DAX caching software. /// /// Container for the necessary parameters to execute the DescribeDefaultParameters service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDefaultParameters service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DescribeDefaultParameters Operation public virtual Task DescribeDefaultParametersAsync(DescribeDefaultParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDefaultParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDefaultParametersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEvents internal virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns events related to DAX clusters and parameter groups. You can obtain events /// specific to a particular DAX cluster or parameter group by providing the name as a /// parameter. /// /// /// /// By default, only the events occurring within the last 24 hours are returned; however, /// you can retrieve up to 14 days' worth of events if necessary. /// /// /// Container for the necessary parameters to execute the DescribeEvents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEvents service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DescribeEvents Operation public virtual Task DescribeEventsAsync(DescribeEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeParameterGroups internal virtual DescribeParameterGroupsResponse DescribeParameterGroups(DescribeParameterGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeParameterGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeParameterGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of parameter group descriptions. If a parameter group name is specified, /// the list will contain only the descriptions for that group. /// /// Container for the necessary parameters to execute the DescribeParameterGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeParameterGroups service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified parameter group does not exist. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DescribeParameterGroups Operation public virtual Task DescribeParameterGroupsAsync(DescribeParameterGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeParameterGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeParameterGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeParameters internal virtual DescribeParametersResponse DescribeParameters(DescribeParametersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeParametersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the detailed parameter list for a particular parameter group. /// /// Container for the necessary parameters to execute the DescribeParameters service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeParameters service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified parameter group does not exist. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for DescribeParameters Operation public virtual Task DescribeParametersAsync(DescribeParametersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeParametersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeParametersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeSubnetGroups internal virtual DescribeSubnetGroupsResponse DescribeSubnetGroups(DescribeSubnetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubnetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubnetGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of subnet group descriptions. If a subnet group name is specified, /// the list will contain only the description of that group. /// /// Container for the necessary parameters to execute the DescribeSubnetGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeSubnetGroups service method, as returned by DAX. /// /// The specified service linked role (SLR) was not found. /// /// /// The requested subnet group name does not refer to an existing subnet group. /// /// REST API Reference for DescribeSubnetGroups Operation public virtual Task DescribeSubnetGroupsAsync(DescribeSubnetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSubnetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSubnetGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region IncreaseReplicationFactor internal virtual IncreaseReplicationFactorResponse IncreaseReplicationFactor(IncreaseReplicationFactorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = IncreaseReplicationFactorRequestMarshaller.Instance; options.ResponseUnmarshaller = IncreaseReplicationFactorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds one or more nodes to a DAX cluster. /// /// Container for the necessary parameters to execute the IncreaseReplicationFactor service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the IncreaseReplicationFactor service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// There are not enough system resources to create the cluster you requested (or to resize /// an already-existing cluster). /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The VPC network is in an invalid state. /// /// /// You have attempted to exceed the maximum number of nodes for a DAX cluster. /// /// /// You have attempted to exceed the maximum number of nodes for your AWS account. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for IncreaseReplicationFactor Operation public virtual Task IncreaseReplicationFactorAsync(IncreaseReplicationFactorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = IncreaseReplicationFactorRequestMarshaller.Instance; options.ResponseUnmarshaller = IncreaseReplicationFactorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTags internal virtual ListTagsResponse ListTags(ListTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List all of the tags for a DAX cluster. You can call ListTags up to 10 /// times per second, per account. /// /// Container for the necessary parameters to execute the ListTags service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTags service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The Amazon Resource Name (ARN) supplied in the request is not valid. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for ListTags Operation public virtual Task ListTagsAsync(ListTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RebootNode internal virtual RebootNodeResponse RebootNode(RebootNodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RebootNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = RebootNodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Reboots a single node of a DAX cluster. The reboot action takes place as soon as possible. /// During the reboot, the node status is set to REBOOTING. /// /// /// /// RebootNode restarts the DAX engine process and does not remove the contents /// of the cache. /// /// /// /// Container for the necessary parameters to execute the RebootNode service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RebootNode service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// None of the nodes in the cluster have the given node ID. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for RebootNode Operation public virtual Task RebootNodeAsync(RebootNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RebootNodeRequestMarshaller.Instance; options.ResponseUnmarshaller = RebootNodeResponseUnmarshaller.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); } /// /// Associates a set of tags with a DAX resource. You can call TagResource /// up to 5 times per second, per account. /// /// 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 DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The Amazon Resource Name (ARN) supplied in the request is not valid. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// /// You have exceeded the maximum number of tags for this DAX cluster. /// /// 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 association of tags from a DAX resource. You can call UntagResource /// up to 5 times per second, per account. /// /// 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 DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The Amazon Resource Name (ARN) supplied in the request is not valid. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// The value for a parameter is invalid. /// /// /// The specified service linked role (SLR) was not found. /// /// /// The tag does not exist. /// /// 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 UpdateCluster internal virtual UpdateClusterResponse UpdateCluster(UpdateClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies the settings for a DAX cluster. You can use this action to change one or /// more cluster configuration parameters by specifying the parameters and the new values. /// /// Container for the necessary parameters to execute the UpdateCluster service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCluster service method, as returned by DAX. /// /// The requested cluster ID does not refer to an existing DAX cluster. /// /// /// The requested DAX cluster is not in the available state. /// /// /// Two or more incompatible parameters were specified. /// /// /// One or more parameters in a parameter group are in an invalid state. /// /// /// The value for a parameter is invalid. /// /// /// The specified parameter group does not exist. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for UpdateCluster Operation public virtual Task UpdateClusterAsync(UpdateClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateParameterGroup internal virtual UpdateParameterGroupResponse UpdateParameterGroup(UpdateParameterGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateParameterGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateParameterGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies the parameters of a parameter group. You can modify up to 20 parameters in /// a single request by submitting a list parameter name and value pairs. /// /// Container for the necessary parameters to execute the UpdateParameterGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateParameterGroup service method, as returned by DAX. /// /// Two or more incompatible parameters were specified. /// /// /// One or more parameters in a parameter group are in an invalid state. /// /// /// The value for a parameter is invalid. /// /// /// The specified parameter group does not exist. /// /// /// The specified service linked role (SLR) was not found. /// /// REST API Reference for UpdateParameterGroup Operation public virtual Task UpdateParameterGroupAsync(UpdateParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateParameterGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateParameterGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateSubnetGroup internal virtual UpdateSubnetGroupResponse UpdateSubnetGroup(UpdateSubnetGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubnetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubnetGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies an existing subnet group. /// /// Container for the necessary parameters to execute the UpdateSubnetGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateSubnetGroup service method, as returned by DAX. /// /// An invalid subnet identifier was specified. /// /// /// The specified service linked role (SLR) was not found. /// /// /// The requested subnet group name does not refer to an existing subnet group. /// /// /// The requested subnet is being used by another subnet group. /// /// /// The request cannot be processed because it would exceed the allowed number of subnets /// in a subnet group. /// /// REST API Reference for UpdateSubnetGroup Operation public virtual Task UpdateSubnetGroupAsync(UpdateSubnetGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubnetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubnetGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }