/*
* 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 cloudhsm-2014-05-30.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.CloudHSM.Model;
using Amazon.CloudHSM.Model.Internal.MarshallTransformations;
using Amazon.CloudHSM.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.CloudHSM
{
///
/// Implementation for accessing CloudHSM
///
/// AWS CloudHSM Service
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
public partial class AmazonCloudHSMClient : AmazonServiceClient, IAmazonCloudHSM
{
private static IServiceMetadata serviceMetadata = new AmazonCloudHSMMetadata();
#region Constructors
///
/// Constructs AmazonCloudHSMClient 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 AmazonCloudHSMClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig()) { }
///
/// Constructs AmazonCloudHSMClient 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 AmazonCloudHSMClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonCloudHSMClient 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 AmazonCloudHSMClient Configuration Object
public AmazonCloudHSMClient(AmazonCloudHSMConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonCloudHSMClient with AWS Credentials
///
/// AWS Credentials
public AmazonCloudHSMClient(AWSCredentials credentials)
: this(credentials, new AmazonCloudHSMConfig())
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonCloudHSMClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonCloudHSMConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Credentials and an
/// AmazonCloudHSMClient Configuration object.
///
/// AWS Credentials
/// The AmazonCloudHSMClient Configuration Object
public AmazonCloudHSMClient(AWSCredentials credentials, AmazonCloudHSMConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig())
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudHSMClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonCloudHSMClient Configuration Object
public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudHSMConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig())
{
}
///
/// Constructs AmazonCloudHSMClient 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 AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonCloudHSMClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonCloudHSMClient Configuration Object
public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudHSMConfig 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 AmazonCloudHSMEndpointResolver());
}
///
/// 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 AddTagsToResource
internal virtual AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
///
///
///
/// Each tag consists of a key and a value. Tag keys must be unique to each resource.
///
///
/// Container for the necessary parameters to execute the AddTagsToResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AddTagsToResource service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for AddTagsToResource Operation
public virtual Task AddTagsToResourceAsync(AddTagsToResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateHapg
internal virtual CreateHapgResponse CreateHapg(CreateHapgRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Creates a high-availability partition group. A high-availability partition group is
/// a group of partitions that spans multiple physical HSMs.
///
///
/// The label of the new high-availability partition group.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for CreateHapg Operation
public virtual Task CreateHapgAsync(string label, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new CreateHapgRequest();
request.Label = label;
return CreateHapgAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Creates a high-availability partition group. A high-availability partition group is
/// a group of partitions that spans multiple physical HSMs.
///
///
/// Container for the necessary parameters to execute the CreateHapg service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for CreateHapg Operation
public virtual Task CreateHapgAsync(CreateHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateHsm
internal virtual CreateHsmResponse CreateHsm(CreateHsmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Creates an uninitialized HSM instance.
///
///
///
/// There is an upfront fee charged for each HSM instance that you create with the CreateHsm
/// operation. If you accidentally provision an HSM and want to request a refund, delete
/// the instance using the DeleteHsm operation, go to the AWS
/// Support Center, create a new case, and select Account and Billing Support.
///
///
///
/// It can take up to 20 minutes to create and provision an HSM. You can monitor the status
/// of the HSM with the DescribeHsm operation. The HSM is ready to be initialized
/// when the status changes to RUNNING
.
///
///
///
/// Container for the necessary parameters to execute the CreateHsm service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateHsm service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for CreateHsm Operation
public virtual Task CreateHsmAsync(CreateHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateLunaClient
internal virtual CreateLunaClientResponse CreateLunaClient(CreateLunaClientRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Creates an HSM client.
///
///
/// Container for the necessary parameters to execute the CreateLunaClient service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateLunaClient service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for CreateLunaClient Operation
public virtual Task CreateLunaClientAsync(CreateLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteHapg
internal virtual DeleteHapgResponse DeleteHapg(DeleteHapgRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Deletes a high-availability partition group.
///
///
/// The ARN of the high-availability partition group to delete.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DeleteHapg Operation
public virtual Task DeleteHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new DeleteHapgRequest();
request.HapgArn = hapgArn;
return DeleteHapgAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Deletes a high-availability partition group.
///
///
/// Container for the necessary parameters to execute the DeleteHapg service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DeleteHapg Operation
public virtual Task DeleteHapgAsync(DeleteHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteHsm
internal virtual DeleteHsmResponse DeleteHsm(DeleteHsmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Deletes an HSM. After completion, this operation cannot be undone and your key material
/// cannot be recovered.
///
///
/// The ARN of the HSM to delete.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteHsm service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DeleteHsm Operation
public virtual Task DeleteHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new DeleteHsmRequest();
request.HsmArn = hsmArn;
return DeleteHsmAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Deletes an HSM. After completion, this operation cannot be undone and your key material
/// cannot be recovered.
///
///
/// Container for the necessary parameters to execute the DeleteHsm service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteHsm service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DeleteHsm Operation
public virtual Task DeleteHsmAsync(DeleteHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteLunaClient
internal virtual DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Deletes a client.
///
///
/// The ARN of the client to delete.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteLunaClient service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DeleteLunaClient Operation
public virtual Task DeleteLunaClientAsync(string clientArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new DeleteLunaClientRequest();
request.ClientArn = clientArn;
return DeleteLunaClientAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Deletes a client.
///
///
/// Container for the necessary parameters to execute the DeleteLunaClient service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteLunaClient service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DeleteLunaClient Operation
public virtual Task DeleteLunaClientAsync(DeleteLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeHapg
internal virtual DescribeHapgResponse DescribeHapg(DescribeHapgRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves information about a high-availability partition group.
///
///
/// The ARN of the high-availability partition group to describe.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DescribeHapg Operation
public virtual Task DescribeHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new DescribeHapgRequest();
request.HapgArn = hapgArn;
return DescribeHapgAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves information about a high-availability partition group.
///
///
/// Container for the necessary parameters to execute the DescribeHapg service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DescribeHapg Operation
public virtual Task DescribeHapgAsync(DescribeHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeHsm
internal virtual DescribeHsmResponse DescribeHsm(DescribeHsmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial
/// number.
///
///
/// The ARN of the HSM. Either the HsmArn
or the SerialNumber
parameter must be specified.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeHsm service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DescribeHsm Operation
public virtual Task DescribeHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new DescribeHsmRequest();
request.HsmArn = hsmArn;
return DescribeHsmAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial
/// number.
///
///
/// Container for the necessary parameters to execute the DescribeHsm service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeHsm service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DescribeHsm Operation
public virtual Task DescribeHsmAsync(DescribeHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeLunaClient
internal virtual DescribeLunaClientResponse DescribeLunaClient(DescribeLunaClientRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves information about an HSM client.
///
///
/// Container for the necessary parameters to execute the DescribeLunaClient service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeLunaClient service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for DescribeLunaClient Operation
public virtual Task DescribeLunaClientAsync(DescribeLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetConfig
internal virtual GetConfigResponse GetConfig(GetConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Gets the configuration files necessary to connect to all high availability partition
/// groups the client is associated with.
///
///
/// Container for the necessary parameters to execute the GetConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetConfig service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for GetConfig Operation
public virtual Task GetConfigAsync(GetConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAvailableZones
internal virtual ListAvailableZonesResponse ListAvailableZones(ListAvailableZonesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Lists the Availability Zones that have available AWS CloudHSM capacity.
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAvailableZones service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListAvailableZones Operation
public virtual Task ListAvailableZonesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new ListAvailableZonesRequest();
return ListAvailableZonesAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Lists the Availability Zones that have available AWS CloudHSM capacity.
///
///
/// Container for the necessary parameters to execute the ListAvailableZones service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAvailableZones service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListAvailableZones Operation
public virtual Task ListAvailableZonesAsync(ListAvailableZonesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListHapgs
internal virtual ListHapgsResponse ListHapgs(ListHapgsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHapgsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Lists the high-availability partition groups for the account.
///
///
///
/// This operation supports pagination with the use of the NextToken
member.
/// If more results are available, the NextToken
member of the response contains
/// a token that you pass in the next call to ListHapgs
to retrieve the next
/// set of items.
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListHapgs service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListHapgs Operation
public virtual Task ListHapgsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new ListHapgsRequest();
return ListHapgsAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Lists the high-availability partition groups for the account.
///
///
///
/// This operation supports pagination with the use of the NextToken
member.
/// If more results are available, the NextToken
member of the response contains
/// a token that you pass in the next call to ListHapgs
to retrieve the next
/// set of items.
///
///
/// Container for the necessary parameters to execute the ListHapgs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListHapgs service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListHapgs Operation
public virtual Task ListHapgsAsync(ListHapgsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHapgsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListHsms
internal virtual ListHsmsResponse ListHsms(ListHsmsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHsmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves the identifiers of all of the HSMs provisioned for the current customer.
///
///
///
/// This operation supports pagination with the use of the NextToken
member.
/// If more results are available, the NextToken
member of the response contains
/// a token that you pass in the next call to ListHsms
to retrieve the next
/// set of items.
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListHsms service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListHsms Operation
public virtual Task ListHsmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new ListHsmsRequest();
return ListHsmsAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Retrieves the identifiers of all of the HSMs provisioned for the current customer.
///
///
///
/// This operation supports pagination with the use of the NextToken
member.
/// If more results are available, the NextToken
member of the response contains
/// a token that you pass in the next call to ListHsms
to retrieve the next
/// set of items.
///
///
/// Container for the necessary parameters to execute the ListHsms service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListHsms service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListHsms Operation
public virtual Task ListHsmsAsync(ListHsmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHsmsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListLunaClients
internal virtual ListLunaClientsResponse ListLunaClients(ListLunaClientsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Lists all of the clients.
///
///
///
/// This operation supports pagination with the use of the NextToken
member.
/// If more results are available, the NextToken
member of the response contains
/// a token that you pass in the next call to ListLunaClients
to retrieve
/// the next set of items.
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListLunaClients service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListLunaClients Operation
public virtual Task ListLunaClientsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new ListLunaClientsRequest();
return ListLunaClientsAsync(request, cancellationToken);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Lists all of the clients.
///
///
///
/// This operation supports pagination with the use of the NextToken
member.
/// If more results are available, the NextToken
member of the response contains
/// a token that you pass in the next call to ListLunaClients
to retrieve
/// the next set of items.
///
///
/// Container for the necessary parameters to execute the ListLunaClients service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListLunaClients service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ListLunaClients Operation
public virtual Task ListLunaClientsAsync(ListLunaClientsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.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);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Returns a list of all tags for the specified AWS CloudHSM resource.
///
///
/// 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 CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// 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 ModifyHapg
internal virtual ModifyHapgResponse ModifyHapg(ModifyHapgRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Modifies an existing high-availability partition group.
///
///
/// Container for the necessary parameters to execute the ModifyHapg service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ModifyHapg service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ModifyHapg Operation
public virtual Task ModifyHapgAsync(ModifyHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance;
options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ModifyHsm
internal virtual ModifyHsmResponse ModifyHsm(ModifyHsmRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Modifies an HSM.
///
///
///
/// This operation can result in the HSM being offline for up to 15 minutes while the
/// AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should
/// ensure that your AWS CloudHSM service is configured for high availability, and consider
/// executing this operation during a maintenance window.
///
///
///
/// Container for the necessary parameters to execute the ModifyHsm service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ModifyHsm service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for ModifyHsm Operation
public virtual Task ModifyHsmAsync(ModifyHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance;
options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ModifyLunaClient
internal virtual ModifyLunaClientResponse ModifyLunaClient(ModifyLunaClientRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Modifies the certificate used by the client.
///
///
///
/// This action can potentially start a workflow to install the new certificate on the
/// client's HSMs.
///
///
/// Container for the necessary parameters to execute the ModifyLunaClient service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ModifyLunaClient service method, as returned by CloudHSM.
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
/// REST API Reference for ModifyLunaClient Operation
public virtual Task ModifyLunaClientAsync(ModifyLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance;
options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RemoveTagsFromResource
internal virtual RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs,
/// the AWS CloudHSM
/// Classic User Guide, and the AWS
/// CloudHSM Classic API Reference.
///
///
///
/// For information about the current version of AWS CloudHSM, see AWS
/// CloudHSM, the AWS
/// CloudHSM User Guide, and the AWS
/// CloudHSM API Reference.
///
///
///
/// Removes one or more tags from the specified AWS CloudHSM resource.
///
///
///
/// To remove a tag, specify only the tag key to remove (not the value). To overwrite
/// the value for an existing tag, use AddTagsToResource.
///
///
/// Container for the necessary parameters to execute the RemoveTagsFromResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RemoveTagsFromResource service method, as returned by CloudHSM.
///
/// Indicates that an internal error occurred.
///
///
/// Indicates that an exception occurred in the AWS CloudHSM service.
///
///
/// Indicates that one or more of the request parameters are not valid.
///
/// REST API Reference for RemoveTagsFromResource Operation
public virtual Task RemoveTagsFromResourceAsync(RemoveTagsFromResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}