/* * 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.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(); } /// /// Customize the pipeline /// /// 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 /// /// 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. /// /// 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 AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AddTagsToResource operation. /// /// /// Container for the necessary parameters to execute the AddTagsToResource operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddTagsToResource /// operation. /// REST API Reference for AddTagsToResource Operation public virtual IAsyncResult BeginAddTagsToResource(AddTagsToResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AddTagsToResource operation. /// /// /// The IAsyncResult returned by the call to BeginAddTagsToResource. /// /// Returns a AddTagsToResourceResult from CloudHSM. /// REST API Reference for AddTagsToResource Operation public virtual AddTagsToResourceResponse EndAddTagsToResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateHapg /// /// 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. /// /// 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 CreateHapgResponse CreateHapg(string label) { var request = new CreateHapgRequest(); request.Label = label; return CreateHapg(request); } /// /// 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. /// /// 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 CreateHapgResponse CreateHapg(CreateHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateHapg operation. /// /// /// Container for the necessary parameters to execute the CreateHapg operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHapg /// operation. /// REST API Reference for CreateHapg Operation public virtual IAsyncResult BeginCreateHapg(CreateHapgRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateHapg operation. /// /// /// The IAsyncResult returned by the call to BeginCreateHapg. /// /// Returns a CreateHapgResult from CloudHSM. /// REST API Reference for CreateHapg Operation public virtual CreateHapgResponse EndCreateHapg(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateHsm /// /// 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. /// /// 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 CreateHsmResponse CreateHsm(CreateHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateHsm operation. /// /// /// Container for the necessary parameters to execute the CreateHsm operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHsm /// operation. /// REST API Reference for CreateHsm Operation public virtual IAsyncResult BeginCreateHsm(CreateHsmRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateHsm operation. /// /// /// The IAsyncResult returned by the call to BeginCreateHsm. /// /// Returns a CreateHsmResult from CloudHSM. /// REST API Reference for CreateHsm Operation public virtual CreateHsmResponse EndCreateHsm(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateLunaClient /// /// 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. /// /// 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 CreateLunaClientResponse CreateLunaClient(CreateLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateLunaClient operation. /// /// /// Container for the necessary parameters to execute the CreateLunaClient operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLunaClient /// operation. /// REST API Reference for CreateLunaClient Operation public virtual IAsyncResult BeginCreateLunaClient(CreateLunaClientRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateLunaClient operation. /// /// /// The IAsyncResult returned by the call to BeginCreateLunaClient. /// /// Returns a CreateLunaClientResult from CloudHSM. /// REST API Reference for CreateLunaClient Operation public virtual CreateLunaClientResponse EndCreateLunaClient(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteHapg /// /// 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. /// /// 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 DeleteHapgResponse DeleteHapg(string hapgArn) { var request = new DeleteHapgRequest(); request.HapgArn = hapgArn; return DeleteHapg(request); } /// /// 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. /// /// 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 DeleteHapgResponse DeleteHapg(DeleteHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteHapg operation. /// /// /// Container for the necessary parameters to execute the DeleteHapg operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHapg /// operation. /// REST API Reference for DeleteHapg Operation public virtual IAsyncResult BeginDeleteHapg(DeleteHapgRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteHapg operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteHapg. /// /// Returns a DeleteHapgResult from CloudHSM. /// REST API Reference for DeleteHapg Operation public virtual DeleteHapgResponse EndDeleteHapg(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteHsm /// /// 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. /// /// 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 DeleteHsmResponse DeleteHsm(string hsmArn) { var request = new DeleteHsmRequest(); request.HsmArn = hsmArn; return DeleteHsm(request); } /// /// 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. /// /// 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 DeleteHsmResponse DeleteHsm(DeleteHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteHsm operation. /// /// /// Container for the necessary parameters to execute the DeleteHsm operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHsm /// operation. /// REST API Reference for DeleteHsm Operation public virtual IAsyncResult BeginDeleteHsm(DeleteHsmRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteHsm operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteHsm. /// /// Returns a DeleteHsmResult from CloudHSM. /// REST API Reference for DeleteHsm Operation public virtual DeleteHsmResponse EndDeleteHsm(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteLunaClient /// /// 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. /// /// 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 DeleteLunaClientResponse DeleteLunaClient(string clientArn) { var request = new DeleteLunaClientRequest(); request.ClientArn = clientArn; return DeleteLunaClient(request); } /// /// 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. /// /// 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 DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteLunaClient operation. /// /// /// Container for the necessary parameters to execute the DeleteLunaClient operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLunaClient /// operation. /// REST API Reference for DeleteLunaClient Operation public virtual IAsyncResult BeginDeleteLunaClient(DeleteLunaClientRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteLunaClient operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteLunaClient. /// /// Returns a DeleteLunaClientResult from CloudHSM. /// REST API Reference for DeleteLunaClient Operation public virtual DeleteLunaClientResponse EndDeleteLunaClient(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeHapg /// /// 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. /// /// 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 DescribeHapgResponse DescribeHapg(string hapgArn) { var request = new DescribeHapgRequest(); request.HapgArn = hapgArn; return DescribeHapg(request); } /// /// 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. /// /// 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 DescribeHapgResponse DescribeHapg(DescribeHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeHapg operation. /// /// /// Container for the necessary parameters to execute the DescribeHapg operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHapg /// operation. /// REST API Reference for DescribeHapg Operation public virtual IAsyncResult BeginDescribeHapg(DescribeHapgRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeHapg operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeHapg. /// /// Returns a DescribeHapgResult from CloudHSM. /// REST API Reference for DescribeHapg Operation public virtual DescribeHapgResponse EndDescribeHapg(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeHsm /// /// 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. /// /// 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 DescribeHsmResponse DescribeHsm(string hsmArn) { var request = new DescribeHsmRequest(); request.HsmArn = hsmArn; return DescribeHsm(request); } /// /// 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. /// /// 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 DescribeHsmResponse DescribeHsm(DescribeHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeHsm operation. /// /// /// Container for the necessary parameters to execute the DescribeHsm operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHsm /// operation. /// REST API Reference for DescribeHsm Operation public virtual IAsyncResult BeginDescribeHsm(DescribeHsmRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeHsm operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeHsm. /// /// Returns a DescribeHsmResult from CloudHSM. /// REST API Reference for DescribeHsm Operation public virtual DescribeHsmResponse EndDescribeHsm(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeLunaClient /// /// 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. /// /// 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 DescribeLunaClientResponse DescribeLunaClient(DescribeLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeLunaClient operation. /// /// /// Container for the necessary parameters to execute the DescribeLunaClient operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLunaClient /// operation. /// REST API Reference for DescribeLunaClient Operation public virtual IAsyncResult BeginDescribeLunaClient(DescribeLunaClientRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeLunaClient operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeLunaClient. /// /// Returns a DescribeLunaClientResult from CloudHSM. /// REST API Reference for DescribeLunaClient Operation public virtual DescribeLunaClientResponse EndDescribeLunaClient(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetConfig /// /// 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. /// /// 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 GetConfigResponse GetConfig(GetConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetConfig operation. /// /// /// Container for the necessary parameters to execute the GetConfig operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetConfig /// operation. /// REST API Reference for GetConfig Operation public virtual IAsyncResult BeginGetConfig(GetConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetConfig. /// /// Returns a GetConfigResult from CloudHSM. /// REST API Reference for GetConfig Operation public virtual GetConfigResponse EndGetConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAvailableZones /// /// 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. /// /// /// /// 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 ListAvailableZonesResponse ListAvailableZones() { var request = new ListAvailableZonesRequest(); return ListAvailableZones(request); } /// /// 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. /// /// 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 ListAvailableZonesResponse ListAvailableZones(ListAvailableZonesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAvailableZones operation. /// /// /// Container for the necessary parameters to execute the ListAvailableZones operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAvailableZones /// operation. /// REST API Reference for ListAvailableZones Operation public virtual IAsyncResult BeginListAvailableZones(ListAvailableZonesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAvailableZones operation. /// /// /// The IAsyncResult returned by the call to BeginListAvailableZones. /// /// Returns a ListAvailableZonesResult from CloudHSM. /// REST API Reference for ListAvailableZones Operation public virtual ListAvailableZonesResponse EndListAvailableZones(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListHapgs /// /// 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. /// /// /// /// 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 ListHapgsResponse ListHapgs() { var request = new ListHapgsRequest(); return ListHapgs(request); } /// /// 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. /// /// 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 ListHapgsResponse ListHapgs(ListHapgsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHapgsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListHapgs operation. /// /// /// Container for the necessary parameters to execute the ListHapgs operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHapgs /// operation. /// REST API Reference for ListHapgs Operation public virtual IAsyncResult BeginListHapgs(ListHapgsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListHapgsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListHapgs operation. /// /// /// The IAsyncResult returned by the call to BeginListHapgs. /// /// Returns a ListHapgsResult from CloudHSM. /// REST API Reference for ListHapgs Operation public virtual ListHapgsResponse EndListHapgs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListHsms /// /// 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. /// /// /// /// 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 ListHsmsResponse ListHsms() { var request = new ListHsmsRequest(); return ListHsms(request); } /// /// 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. /// /// 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 ListHsmsResponse ListHsms(ListHsmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHsmsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListHsms operation. /// /// /// Container for the necessary parameters to execute the ListHsms operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHsms /// operation. /// REST API Reference for ListHsms Operation public virtual IAsyncResult BeginListHsms(ListHsmsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListHsmsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListHsms operation. /// /// /// The IAsyncResult returned by the call to BeginListHsms. /// /// Returns a ListHsmsResult from CloudHSM. /// REST API Reference for ListHsms Operation public virtual ListHsmsResponse EndListHsms(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListLunaClients /// /// 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. /// /// /// /// 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 ListLunaClientsResponse ListLunaClients() { var request = new ListLunaClientsRequest(); return ListLunaClients(request); } /// /// 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. /// /// 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 ListLunaClientsResponse ListLunaClients(ListLunaClientsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListLunaClients operation. /// /// /// Container for the necessary parameters to execute the ListLunaClients operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLunaClients /// operation. /// REST API Reference for ListLunaClients Operation public virtual IAsyncResult BeginListLunaClients(ListLunaClientsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListLunaClients operation. /// /// /// The IAsyncResult returned by the call to BeginListLunaClients. /// /// Returns a ListLunaClientsResult from CloudHSM. /// REST API Reference for ListLunaClients Operation public virtual ListLunaClientsResponse EndListLunaClients(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// 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. /// /// 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 ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from CloudHSM. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ModifyHapg /// /// 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. /// /// 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 ModifyHapgResponse ModifyHapg(ModifyHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ModifyHapg operation. /// /// /// Container for the necessary parameters to execute the ModifyHapg operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyHapg /// operation. /// REST API Reference for ModifyHapg Operation public virtual IAsyncResult BeginModifyHapg(ModifyHapgRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ModifyHapg operation. /// /// /// The IAsyncResult returned by the call to BeginModifyHapg. /// /// Returns a ModifyHapgResult from CloudHSM. /// REST API Reference for ModifyHapg Operation public virtual ModifyHapgResponse EndModifyHapg(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ModifyHsm /// /// 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. /// /// 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 ModifyHsmResponse ModifyHsm(ModifyHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ModifyHsm operation. /// /// /// Container for the necessary parameters to execute the ModifyHsm operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyHsm /// operation. /// REST API Reference for ModifyHsm Operation public virtual IAsyncResult BeginModifyHsm(ModifyHsmRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ModifyHsm operation. /// /// /// The IAsyncResult returned by the call to BeginModifyHsm. /// /// Returns a ModifyHsmResult from CloudHSM. /// REST API Reference for ModifyHsm Operation public virtual ModifyHsmResponse EndModifyHsm(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ModifyLunaClient /// /// 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. /// /// 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 ModifyLunaClientResponse ModifyLunaClient(ModifyLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ModifyLunaClient operation. /// /// /// Container for the necessary parameters to execute the ModifyLunaClient operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyLunaClient /// operation. /// REST API Reference for ModifyLunaClient Operation public virtual IAsyncResult BeginModifyLunaClient(ModifyLunaClientRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ModifyLunaClient operation. /// /// /// The IAsyncResult returned by the call to BeginModifyLunaClient. /// /// Returns a ModifyLunaClientResult from CloudHSM. /// REST API Reference for ModifyLunaClient Operation public virtual ModifyLunaClientResponse EndModifyLunaClient(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RemoveTagsFromResource /// /// 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. /// /// 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 RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RemoveTagsFromResource operation. /// /// /// Container for the necessary parameters to execute the RemoveTagsFromResource operation on AmazonCloudHSMClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTagsFromResource /// operation. /// REST API Reference for RemoveTagsFromResource Operation public virtual IAsyncResult BeginRemoveTagsFromResource(RemoveTagsFromResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RemoveTagsFromResource operation. /// /// /// The IAsyncResult returned by the call to BeginRemoveTagsFromResource. /// /// Returns a RemoveTagsFromResourceResult from CloudHSM. /// REST API Reference for RemoveTagsFromResource Operation public virtual RemoveTagsFromResourceResponse EndRemoveTagsFromResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }