repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListHsms operation /// </summary> public class ListHsmsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListHsmsResponse response = new ListHsmsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HsmList", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.HsmList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException")) { return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListHsmsResponseUnmarshaller _instance = new ListHsmsResponseUnmarshaller(); internal static ListHsmsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListHsmsResponseUnmarshaller Instance { get { return _instance; } } } }
124
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// ListLunaClients Request Marshaller /// </summary> public class ListLunaClientsRequestMarshaller : IMarshaller<IRequest, ListLunaClientsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListLunaClientsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListLunaClientsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM"); string target = "CloudHsmFrontendService.ListLunaClients"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListLunaClientsRequestMarshaller _instance = new ListLunaClientsRequestMarshaller(); internal static ListLunaClientsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListLunaClientsRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListLunaClients operation /// </summary> public class ListLunaClientsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListLunaClientsResponse response = new ListLunaClientsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ClientList", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.ClientList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException")) { return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListLunaClientsResponseUnmarshaller _instance = new ListLunaClientsResponseUnmarshaller(); internal static ListLunaClientsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListLunaClientsResponseUnmarshaller Instance { get { return _instance; } } } }
124
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForResource Request Marshaller /// </summary> public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListTagsForResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM"); string target = "CloudHsmFrontendService.ListTagsForResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceArn()) { context.Writer.WritePropertyName("ResourceArn"); context.Writer.Write(publicRequest.ResourceArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); internal static ListTagsForResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForResource operation /// </summary> public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("TagList", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); response.TagList = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException")) { return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); internal static ListTagsForResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// ModifyHapg Request Marshaller /// </summary> public class ModifyHapgRequestMarshaller : IMarshaller<IRequest, ModifyHapgRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ModifyHapgRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ModifyHapgRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM"); string target = "CloudHsmFrontendService.ModifyHapg"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetHapgArn()) { context.Writer.WritePropertyName("HapgArn"); context.Writer.Write(publicRequest.HapgArn); } if(publicRequest.IsSetLabel()) { context.Writer.WritePropertyName("Label"); context.Writer.Write(publicRequest.Label); } if(publicRequest.IsSetPartitionSerialList()) { context.Writer.WritePropertyName("PartitionSerialList"); context.Writer.WriteArrayStart(); foreach(var publicRequestPartitionSerialListListValue in publicRequest.PartitionSerialList) { context.Writer.Write(publicRequestPartitionSerialListListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ModifyHapgRequestMarshaller _instance = new ModifyHapgRequestMarshaller(); internal static ModifyHapgRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ModifyHapgRequestMarshaller Instance { get { return _instance; } } } }
120
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ModifyHapg operation /// </summary> public class ModifyHapgResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ModifyHapgResponse response = new ModifyHapgResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HapgArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HapgArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException")) { return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ModifyHapgResponseUnmarshaller _instance = new ModifyHapgResponseUnmarshaller(); internal static ModifyHapgResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ModifyHapgResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// ModifyHsm Request Marshaller /// </summary> public class ModifyHsmRequestMarshaller : IMarshaller<IRequest, ModifyHsmRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ModifyHsmRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ModifyHsmRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM"); string target = "CloudHsmFrontendService.ModifyHsm"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEniIp()) { context.Writer.WritePropertyName("EniIp"); context.Writer.Write(publicRequest.EniIp); } if(publicRequest.IsSetExternalId()) { context.Writer.WritePropertyName("ExternalId"); context.Writer.Write(publicRequest.ExternalId); } if(publicRequest.IsSetHsmArn()) { context.Writer.WritePropertyName("HsmArn"); context.Writer.Write(publicRequest.HsmArn); } if(publicRequest.IsSetIamRoleArn()) { context.Writer.WritePropertyName("IamRoleArn"); context.Writer.Write(publicRequest.IamRoleArn); } if(publicRequest.IsSetSubnetId()) { context.Writer.WritePropertyName("SubnetId"); context.Writer.Write(publicRequest.SubnetId); } if(publicRequest.IsSetSyslogIp()) { context.Writer.WritePropertyName("SyslogIp"); context.Writer.Write(publicRequest.SyslogIp); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ModifyHsmRequestMarshaller _instance = new ModifyHsmRequestMarshaller(); internal static ModifyHsmRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ModifyHsmRequestMarshaller Instance { get { return _instance; } } } }
133
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ModifyHsm operation /// </summary> public class ModifyHsmResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ModifyHsmResponse response = new ModifyHsmResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HsmArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HsmArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException")) { return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ModifyHsmResponseUnmarshaller _instance = new ModifyHsmResponseUnmarshaller(); internal static ModifyHsmResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ModifyHsmResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// ModifyLunaClient Request Marshaller /// </summary> public class ModifyLunaClientRequestMarshaller : IMarshaller<IRequest, ModifyLunaClientRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ModifyLunaClientRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ModifyLunaClientRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM"); string target = "CloudHsmFrontendService.ModifyLunaClient"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificate()) { context.Writer.WritePropertyName("Certificate"); context.Writer.Write(publicRequest.Certificate); } if(publicRequest.IsSetClientArn()) { context.Writer.WritePropertyName("ClientArn"); context.Writer.Write(publicRequest.ClientArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ModifyLunaClientRequestMarshaller _instance = new ModifyLunaClientRequestMarshaller(); internal static ModifyLunaClientRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ModifyLunaClientRequestMarshaller Instance { get { return _instance; } } } }
109
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ModifyLunaClient operation /// </summary> public class ModifyLunaClientResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ModifyLunaClientResponse response = new ModifyLunaClientResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ClientArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ModifyLunaClientResponseUnmarshaller _instance = new ModifyLunaClientResponseUnmarshaller(); internal static ModifyLunaClientResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ModifyLunaClientResponseUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// RemoveTagsFromResource Request Marshaller /// </summary> public class RemoveTagsFromResourceRequestMarshaller : IMarshaller<IRequest, RemoveTagsFromResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((RemoveTagsFromResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RemoveTagsFromResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSM"); string target = "CloudHsmFrontendService.RemoveTagsFromResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2014-05-30"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceArn()) { context.Writer.WritePropertyName("ResourceArn"); context.Writer.Write(publicRequest.ResourceArn); } if(publicRequest.IsSetTagKeyList()) { context.Writer.WritePropertyName("TagKeyList"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagKeyListListValue in publicRequest.TagKeyList) { context.Writer.Write(publicRequestTagKeyListListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static RemoveTagsFromResourceRequestMarshaller _instance = new RemoveTagsFromResourceRequestMarshaller(); internal static RemoveTagsFromResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RemoveTagsFromResourceRequestMarshaller Instance { get { return _instance; } } } }
114
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RemoveTagsFromResource operation /// </summary> public class RemoveTagsFromResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { RemoveTagsFromResourceResponse response = new RemoveTagsFromResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalException")) { return CloudHsmInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException")) { return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static RemoveTagsFromResourceResponseUnmarshaller _instance = new RemoveTagsFromResourceResponseUnmarshaller(); internal static RemoveTagsFromResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RemoveTagsFromResourceResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Tag Marshaller /// </summary> public class TagMarshaller : IRequestMarshaller<Tag, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(Tag requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagMarshaller Instance = new TagMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSM.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSM.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tag IUnmarshaller<Tag, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Tag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tag unmarshalledObject = new Tag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Implementation for accessing CloudHSM /// /// AWS CloudHSM Service /// <para> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// </para> /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// </summary> public partial class AmazonCloudHSMClient : AmazonServiceClient, IAmazonCloudHSM { private static IServiceMetadata serviceMetadata = new AmazonCloudHSMMetadata(); #region Constructors /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudHSMClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig()) { } /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(AmazonCloudHSMConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudHSMClient(AWSCredentials credentials) : this(credentials, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(AWSCredentials credentials, AmazonCloudHSMConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudHSMConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudHSMConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudHSMEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddTagsToResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> public virtual AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance; return Invoke<AddTagsToResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AddTagsToResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddTagsToResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the AddTagsToResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddTagsToResource.</param> /// /// <returns>Returns a AddTagsToResourceResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> public virtual AddTagsToResourceResponse EndAddTagsToResource(IAsyncResult asyncResult) { return EndInvoke<AddTagsToResourceResponse>(asyncResult); } #endregion #region CreateHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual CreateHapgResponse CreateHapg(string label) { var request = new CreateHapgRequest(); request.Label = label; return CreateHapg(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual CreateHapgResponse CreateHapg(CreateHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance; return Invoke<CreateHapgResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the CreateHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateHapg.</param> /// /// <returns>Returns a CreateHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual CreateHapgResponse EndCreateHapg(IAsyncResult asyncResult) { return EndInvoke<CreateHapgResponse>(asyncResult); } #endregion #region CreateHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual CreateHsmResponse CreateHsm(CreateHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return Invoke<CreateHsmResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the CreateHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateHsm.</param> /// /// <returns>Returns a CreateHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual CreateHsmResponse EndCreateHsm(IAsyncResult asyncResult) { return EndInvoke<CreateHsmResponse>(asyncResult); } #endregion #region CreateLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> public virtual CreateLunaClientResponse CreateLunaClient(CreateLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance; return Invoke<CreateLunaClientResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the CreateLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateLunaClient.</param> /// /// <returns>Returns a CreateLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> public virtual CreateLunaClientResponse EndCreateLunaClient(IAsyncResult asyncResult) { return EndInvoke<CreateLunaClientResponse>(asyncResult); } #endregion #region DeleteHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual DeleteHapgResponse DeleteHapg(string hapgArn) { var request = new DeleteHapgRequest(); request.HapgArn = hapgArn; return DeleteHapg(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual DeleteHapgResponse DeleteHapg(DeleteHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance; return Invoke<DeleteHapgResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the DeleteHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHapg.</param> /// /// <returns>Returns a DeleteHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual DeleteHapgResponse EndDeleteHapg(IAsyncResult asyncResult) { return EndInvoke<DeleteHapgResponse>(asyncResult); } #endregion #region DeleteHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual DeleteHsmResponse DeleteHsm(string hsmArn) { var request = new DeleteHsmRequest(); request.HsmArn = hsmArn; return DeleteHsm(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual DeleteHsmResponse DeleteHsm(DeleteHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance; return Invoke<DeleteHsmResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the DeleteHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHsm.</param> /// /// <returns>Returns a DeleteHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual DeleteHsmResponse EndDeleteHsm(IAsyncResult asyncResult) { return EndInvoke<DeleteHsmResponse>(asyncResult); } #endregion #region DeleteLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual DeleteLunaClientResponse DeleteLunaClient(string clientArn) { var request = new DeleteLunaClientRequest(); request.ClientArn = clientArn; return DeleteLunaClient(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return Invoke<DeleteLunaClientResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the DeleteLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLunaClient.</param> /// /// <returns>Returns a DeleteLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual DeleteLunaClientResponse EndDeleteLunaClient(IAsyncResult asyncResult) { return EndInvoke<DeleteLunaClientResponse>(asyncResult); } #endregion #region DescribeHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual DescribeHapgResponse DescribeHapg(string hapgArn) { var request = new DescribeHapgRequest(); request.HapgArn = hapgArn; return DescribeHapg(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual DescribeHapgResponse DescribeHapg(DescribeHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance; return Invoke<DescribeHapgResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the DescribeHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHapg.</param> /// /// <returns>Returns a DescribeHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual DescribeHapgResponse EndDescribeHapg(IAsyncResult asyncResult) { return EndInvoke<DescribeHapgResponse>(asyncResult); } #endregion #region DescribeHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual DescribeHsmResponse DescribeHsm(string hsmArn) { var request = new DescribeHsmRequest(); request.HsmArn = hsmArn; return DescribeHsm(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual DescribeHsmResponse DescribeHsm(DescribeHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance; return Invoke<DescribeHsmResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the DescribeHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHsm.</param> /// /// <returns>Returns a DescribeHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual DescribeHsmResponse EndDescribeHsm(IAsyncResult asyncResult) { return EndInvoke<DescribeHsmResponse>(asyncResult); } #endregion #region DescribeLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> public virtual DescribeLunaClientResponse DescribeLunaClient(DescribeLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance; return Invoke<DescribeLunaClientResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the DescribeLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLunaClient.</param> /// /// <returns>Returns a DescribeLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> public virtual DescribeLunaClientResponse EndDescribeLunaClient(IAsyncResult asyncResult) { return EndInvoke<DescribeLunaClientResponse>(asyncResult); } #endregion #region GetConfig /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> public virtual GetConfigResponse GetConfig(GetConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance; return Invoke<GetConfigResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetConfig operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetConfig operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetConfig /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the GetConfig operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetConfig.</param> /// /// <returns>Returns a GetConfigResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> public virtual GetConfigResponse EndGetConfig(IAsyncResult asyncResult) { return EndInvoke<GetConfigResponse>(asyncResult); } #endregion #region ListAvailableZones /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual ListAvailableZonesResponse ListAvailableZones() { var request = new ListAvailableZonesRequest(); return ListAvailableZones(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual ListAvailableZonesResponse ListAvailableZones(ListAvailableZonesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance; return Invoke<ListAvailableZonesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListAvailableZones operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAvailableZones /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ListAvailableZones operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAvailableZones.</param> /// /// <returns>Returns a ListAvailableZonesResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual ListAvailableZonesResponse EndListAvailableZones(IAsyncResult asyncResult) { return EndInvoke<ListAvailableZonesResponse>(asyncResult); } #endregion #region ListHapgs /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual ListHapgsResponse ListHapgs() { var request = new ListHapgsRequest(); return ListHapgs(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual ListHapgsResponse ListHapgs(ListHapgsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHapgsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance; return Invoke<ListHapgsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListHapgs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHapgs operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHapgs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ListHapgs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHapgs.</param> /// /// <returns>Returns a ListHapgsResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual ListHapgsResponse EndListHapgs(IAsyncResult asyncResult) { return EndInvoke<ListHapgsResponse>(asyncResult); } #endregion #region ListHsms /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual ListHsmsResponse ListHsms() { var request = new ListHsmsRequest(); return ListHsms(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual ListHsmsResponse ListHsms(ListHsmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHsmsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance; return Invoke<ListHsmsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListHsms operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHsms operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHsms /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ListHsms operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHsms.</param> /// /// <returns>Returns a ListHsmsResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual ListHsmsResponse EndListHsms(IAsyncResult asyncResult) { return EndInvoke<ListHsmsResponse>(asyncResult); } #endregion #region ListLunaClients /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual ListLunaClientsResponse ListLunaClients() { var request = new ListLunaClientsRequest(); return ListLunaClients(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual ListLunaClientsResponse ListLunaClients(ListLunaClientsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance; return Invoke<ListLunaClientsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListLunaClients operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListLunaClients operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLunaClients /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ListLunaClients operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListLunaClients.</param> /// /// <returns>Returns a ListLunaClientsResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual ListLunaClientsResponse EndListLunaClients(IAsyncResult asyncResult) { return EndInvoke<ListLunaClientsResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region ModifyHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> public virtual ModifyHapgResponse ModifyHapg(ModifyHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance; return Invoke<ModifyHapgResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ModifyHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ModifyHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginModifyHapg.</param> /// /// <returns>Returns a ModifyHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> public virtual ModifyHapgResponse EndModifyHapg(IAsyncResult asyncResult) { return EndInvoke<ModifyHapgResponse>(asyncResult); } #endregion #region ModifyHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> public virtual ModifyHsmResponse ModifyHsm(ModifyHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance; return Invoke<ModifyHsmResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ModifyHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ModifyHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginModifyHsm.</param> /// /// <returns>Returns a ModifyHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> public virtual ModifyHsmResponse EndModifyHsm(IAsyncResult asyncResult) { return EndInvoke<ModifyHsmResponse>(asyncResult); } #endregion #region ModifyLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> public virtual ModifyLunaClientResponse ModifyLunaClient(ModifyLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance; return Invoke<ModifyLunaClientResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ModifyLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the ModifyLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginModifyLunaClient.</param> /// /// <returns>Returns a ModifyLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> public virtual ModifyLunaClientResponse EndModifyLunaClient(IAsyncResult asyncResult) { return EndInvoke<ModifyLunaClientResponse>(asyncResult); } #endregion #region RemoveTagsFromResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> public virtual RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance; return Invoke<RemoveTagsFromResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RemoveTagsFromResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTagsFromResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> 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); } /// <summary> /// Finishes the asynchronous execution of the RemoveTagsFromResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemoveTagsFromResource.</param> /// /// <returns>Returns a RemoveTagsFromResourceResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> public virtual RemoveTagsFromResourceResponse EndRemoveTagsFromResource(IAsyncResult asyncResult) { return EndInvoke<RemoveTagsFromResourceResponse>(asyncResult); } #endregion } }
2,315
aws-sdk-net
aws
C#
/* * 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 Amazon.Runtime; using Amazon.CloudHSM.Model; namespace Amazon.CloudHSM { /// <summary> /// Interface for accessing CloudHSM /// /// AWS CloudHSM Service /// <para> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// </para> /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// </summary> public partial interface IAmazonCloudHSM : IAmazonService, IDisposable { #region AddTagsToResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the AddTagsToResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddTagsToResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> IAsyncResult BeginAddTagsToResource(AddTagsToResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AddTagsToResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddTagsToResource.</param> /// /// <returns>Returns a AddTagsToResourceResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> AddTagsToResourceResponse EndAddTagsToResource(IAsyncResult asyncResult); #endregion #region CreateHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> CreateHapgResponse CreateHapg(string label); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> CreateHapgResponse CreateHapg(CreateHapgRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> IAsyncResult BeginCreateHapg(CreateHapgRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateHapg.</param> /// /// <returns>Returns a CreateHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> CreateHapgResponse EndCreateHapg(IAsyncResult asyncResult); #endregion #region CreateHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> CreateHsmResponse CreateHsm(CreateHsmRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> IAsyncResult BeginCreateHsm(CreateHsmRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateHsm.</param> /// /// <returns>Returns a CreateHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> CreateHsmResponse EndCreateHsm(IAsyncResult asyncResult); #endregion #region CreateLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> CreateLunaClientResponse CreateLunaClient(CreateLunaClientRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> IAsyncResult BeginCreateLunaClient(CreateLunaClientRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateLunaClient.</param> /// /// <returns>Returns a CreateLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> CreateLunaClientResponse EndCreateLunaClient(IAsyncResult asyncResult); #endregion #region DeleteHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> DeleteHapgResponse DeleteHapg(string hapgArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> DeleteHapgResponse DeleteHapg(DeleteHapgRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> IAsyncResult BeginDeleteHapg(DeleteHapgRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHapg.</param> /// /// <returns>Returns a DeleteHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> DeleteHapgResponse EndDeleteHapg(IAsyncResult asyncResult); #endregion #region DeleteHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> DeleteHsmResponse DeleteHsm(string hsmArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> DeleteHsmResponse DeleteHsm(DeleteHsmRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> IAsyncResult BeginDeleteHsm(DeleteHsmRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHsm.</param> /// /// <returns>Returns a DeleteHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> DeleteHsmResponse EndDeleteHsm(IAsyncResult asyncResult); #endregion #region DeleteLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> DeleteLunaClientResponse DeleteLunaClient(string clientArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> IAsyncResult BeginDeleteLunaClient(DeleteLunaClientRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLunaClient.</param> /// /// <returns>Returns a DeleteLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> DeleteLunaClientResponse EndDeleteLunaClient(IAsyncResult asyncResult); #endregion #region DescribeHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> DescribeHapgResponse DescribeHapg(string hapgArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> DescribeHapgResponse DescribeHapg(DescribeHapgRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> IAsyncResult BeginDescribeHapg(DescribeHapgRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHapg.</param> /// /// <returns>Returns a DescribeHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> DescribeHapgResponse EndDescribeHapg(IAsyncResult asyncResult); #endregion #region DescribeHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> DescribeHsmResponse DescribeHsm(string hsmArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> DescribeHsmResponse DescribeHsm(DescribeHsmRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> IAsyncResult BeginDescribeHsm(DescribeHsmRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHsm.</param> /// /// <returns>Returns a DescribeHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> DescribeHsmResponse EndDescribeHsm(IAsyncResult asyncResult); #endregion #region DescribeLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> DescribeLunaClientResponse DescribeLunaClient(DescribeLunaClientRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> IAsyncResult BeginDescribeLunaClient(DescribeLunaClientRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLunaClient.</param> /// /// <returns>Returns a DescribeLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> DescribeLunaClientResponse EndDescribeLunaClient(IAsyncResult asyncResult); #endregion #region GetConfig /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> GetConfigResponse GetConfig(GetConfigRequest request); /// <summary> /// Initiates the asynchronous execution of the GetConfig operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetConfig operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetConfig /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> IAsyncResult BeginGetConfig(GetConfigRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetConfig operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetConfig.</param> /// /// <returns>Returns a GetConfigResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> GetConfigResponse EndGetConfig(IAsyncResult asyncResult); #endregion #region ListAvailableZones /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> ListAvailableZonesResponse ListAvailableZones(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> ListAvailableZonesResponse ListAvailableZones(ListAvailableZonesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListAvailableZones operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAvailableZones /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> IAsyncResult BeginListAvailableZones(ListAvailableZonesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListAvailableZones operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAvailableZones.</param> /// /// <returns>Returns a ListAvailableZonesResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> ListAvailableZonesResponse EndListAvailableZones(IAsyncResult asyncResult); #endregion #region ListHapgs /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> ListHapgsResponse ListHapgs(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> ListHapgsResponse ListHapgs(ListHapgsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListHapgs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHapgs operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHapgs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> IAsyncResult BeginListHapgs(ListHapgsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListHapgs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHapgs.</param> /// /// <returns>Returns a ListHapgsResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> ListHapgsResponse EndListHapgs(IAsyncResult asyncResult); #endregion #region ListHsms /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> ListHsmsResponse ListHsms(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> ListHsmsResponse ListHsms(ListHsmsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListHsms operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHsms operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHsms /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> IAsyncResult BeginListHsms(ListHsmsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListHsms operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHsms.</param> /// /// <returns>Returns a ListHsmsResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> ListHsmsResponse EndListHsms(IAsyncResult asyncResult); #endregion #region ListLunaClients /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> ListLunaClientsResponse ListLunaClients(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> ListLunaClientsResponse ListLunaClients(ListLunaClientsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListLunaClients operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListLunaClients operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLunaClients /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> IAsyncResult BeginListLunaClients(ListLunaClientsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListLunaClients operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListLunaClients.</param> /// /// <returns>Returns a ListLunaClientsResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> ListLunaClientsResponse EndListLunaClients(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region ModifyHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> ModifyHapgResponse ModifyHapg(ModifyHapgRequest request); /// <summary> /// Initiates the asynchronous execution of the ModifyHapg operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyHapg operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyHapg /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> IAsyncResult BeginModifyHapg(ModifyHapgRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ModifyHapg operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginModifyHapg.</param> /// /// <returns>Returns a ModifyHapgResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> ModifyHapgResponse EndModifyHapg(IAsyncResult asyncResult); #endregion #region ModifyHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> ModifyHsmResponse ModifyHsm(ModifyHsmRequest request); /// <summary> /// Initiates the asynchronous execution of the ModifyHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyHsm operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyHsm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> IAsyncResult BeginModifyHsm(ModifyHsmRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ModifyHsm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginModifyHsm.</param> /// /// <returns>Returns a ModifyHsmResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> ModifyHsmResponse EndModifyHsm(IAsyncResult asyncResult); #endregion #region ModifyLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> ModifyLunaClientResponse ModifyLunaClient(ModifyLunaClientRequest request); /// <summary> /// Initiates the asynchronous execution of the ModifyLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndModifyLunaClient /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> IAsyncResult BeginModifyLunaClient(ModifyLunaClientRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ModifyLunaClient operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginModifyLunaClient.</param> /// /// <returns>Returns a ModifyLunaClientResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> ModifyLunaClientResponse EndModifyLunaClient(IAsyncResult asyncResult); #endregion #region RemoveTagsFromResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the RemoveTagsFromResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource operation on AmazonCloudHSMClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTagsFromResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> IAsyncResult BeginRemoveTagsFromResource(RemoveTagsFromResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RemoveTagsFromResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemoveTagsFromResource.</param> /// /// <returns>Returns a RemoveTagsFromResourceResult from CloudHSM.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> RemoveTagsFromResourceResponse EndRemoveTagsFromResource(IAsyncResult asyncResult); #endregion } }
1,771
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Implementation for accessing CloudHSM /// /// AWS CloudHSM Service /// <para> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// </para> /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// </summary> public partial class AmazonCloudHSMClient : AmazonServiceClient, IAmazonCloudHSM { private static IServiceMetadata serviceMetadata = new AmazonCloudHSMMetadata(); #region Constructors /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudHSMClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig()) { } /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(AmazonCloudHSMConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudHSMClient(AWSCredentials credentials) : this(credentials, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(AWSCredentials credentials, AmazonCloudHSMConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudHSMConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudHSMConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudHSMEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddTagsToResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> public virtual AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance; return Invoke<AddTagsToResourceResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> public virtual Task<AddTagsToResourceResponse> AddTagsToResourceAsync(AddTagsToResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance; return InvokeAsync<AddTagsToResourceResponse>(request, options, cancellationToken); } #endregion #region CreateHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual CreateHapgResponse CreateHapg(string label) { var request = new CreateHapgRequest(); request.Label = label; return CreateHapg(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual CreateHapgResponse CreateHapg(CreateHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance; return Invoke<CreateHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual Task<CreateHapgResponse> CreateHapgAsync(string label, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreateHapgRequest(); request.Label = label; return CreateHapgAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual Task<CreateHapgResponse> CreateHapgAsync(CreateHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance; return InvokeAsync<CreateHapgResponse>(request, options, cancellationToken); } #endregion #region CreateHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual CreateHsmResponse CreateHsm(CreateHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return Invoke<CreateHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual Task<CreateHsmResponse> CreateHsmAsync(CreateHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return InvokeAsync<CreateHsmResponse>(request, options, cancellationToken); } #endregion #region CreateLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> public virtual CreateLunaClientResponse CreateLunaClient(CreateLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance; return Invoke<CreateLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> public virtual Task<CreateLunaClientResponse> CreateLunaClientAsync(CreateLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance; return InvokeAsync<CreateLunaClientResponse>(request, options, cancellationToken); } #endregion #region DeleteHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual DeleteHapgResponse DeleteHapg(string hapgArn) { var request = new DeleteHapgRequest(); request.HapgArn = hapgArn; return DeleteHapg(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual DeleteHapgResponse DeleteHapg(DeleteHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance; return Invoke<DeleteHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual Task<DeleteHapgResponse> DeleteHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteHapgRequest(); request.HapgArn = hapgArn; return DeleteHapgAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual Task<DeleteHapgResponse> DeleteHapgAsync(DeleteHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance; return InvokeAsync<DeleteHapgResponse>(request, options, cancellationToken); } #endregion #region DeleteHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual DeleteHsmResponse DeleteHsm(string hsmArn) { var request = new DeleteHsmRequest(); request.HsmArn = hsmArn; return DeleteHsm(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual DeleteHsmResponse DeleteHsm(DeleteHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance; return Invoke<DeleteHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual Task<DeleteHsmResponse> DeleteHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteHsmRequest(); request.HsmArn = hsmArn; return DeleteHsmAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual Task<DeleteHsmResponse> DeleteHsmAsync(DeleteHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance; return InvokeAsync<DeleteHsmResponse>(request, options, cancellationToken); } #endregion #region DeleteLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual DeleteLunaClientResponse DeleteLunaClient(string clientArn) { var request = new DeleteLunaClientRequest(); request.ClientArn = clientArn; return DeleteLunaClient(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return Invoke<DeleteLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual Task<DeleteLunaClientResponse> DeleteLunaClientAsync(string clientArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteLunaClientRequest(); request.ClientArn = clientArn; return DeleteLunaClientAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual Task<DeleteLunaClientResponse> DeleteLunaClientAsync(DeleteLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return InvokeAsync<DeleteLunaClientResponse>(request, options, cancellationToken); } #endregion #region DescribeHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual DescribeHapgResponse DescribeHapg(string hapgArn) { var request = new DescribeHapgRequest(); request.HapgArn = hapgArn; return DescribeHapg(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual DescribeHapgResponse DescribeHapg(DescribeHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance; return Invoke<DescribeHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual Task<DescribeHapgResponse> DescribeHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeHapgRequest(); request.HapgArn = hapgArn; return DescribeHapgAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual Task<DescribeHapgResponse> DescribeHapgAsync(DescribeHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance; return InvokeAsync<DescribeHapgResponse>(request, options, cancellationToken); } #endregion #region DescribeHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual DescribeHsmResponse DescribeHsm(string hsmArn) { var request = new DescribeHsmRequest(); request.HsmArn = hsmArn; return DescribeHsm(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual DescribeHsmResponse DescribeHsm(DescribeHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance; return Invoke<DescribeHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual Task<DescribeHsmResponse> DescribeHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeHsmRequest(); request.HsmArn = hsmArn; return DescribeHsmAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual Task<DescribeHsmResponse> DescribeHsmAsync(DescribeHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance; return InvokeAsync<DescribeHsmResponse>(request, options, cancellationToken); } #endregion #region DescribeLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> public virtual DescribeLunaClientResponse DescribeLunaClient(DescribeLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance; return Invoke<DescribeLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> public virtual Task<DescribeLunaClientResponse> DescribeLunaClientAsync(DescribeLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance; return InvokeAsync<DescribeLunaClientResponse>(request, options, cancellationToken); } #endregion #region GetConfig /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> public virtual GetConfigResponse GetConfig(GetConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance; return Invoke<GetConfigResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> public virtual Task<GetConfigResponse> GetConfigAsync(GetConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance; return InvokeAsync<GetConfigResponse>(request, options, cancellationToken); } #endregion #region ListAvailableZones /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual ListAvailableZonesResponse ListAvailableZones() { var request = new ListAvailableZonesRequest(); return ListAvailableZones(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual ListAvailableZonesResponse ListAvailableZones(ListAvailableZonesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance; return Invoke<ListAvailableZonesResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual Task<ListAvailableZonesResponse> ListAvailableZonesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListAvailableZonesRequest(); return ListAvailableZonesAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual Task<ListAvailableZonesResponse> ListAvailableZonesAsync(ListAvailableZonesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance; return InvokeAsync<ListAvailableZonesResponse>(request, options, cancellationToken); } #endregion #region ListHapgs /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual ListHapgsResponse ListHapgs() { var request = new ListHapgsRequest(); return ListHapgs(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual ListHapgsResponse ListHapgs(ListHapgsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHapgsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance; return Invoke<ListHapgsResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual Task<ListHapgsResponse> ListHapgsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListHapgsRequest(); return ListHapgsAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual Task<ListHapgsResponse> ListHapgsAsync(ListHapgsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHapgsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance; return InvokeAsync<ListHapgsResponse>(request, options, cancellationToken); } #endregion #region ListHsms /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual ListHsmsResponse ListHsms() { var request = new ListHsmsRequest(); return ListHsms(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual ListHsmsResponse ListHsms(ListHsmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHsmsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance; return Invoke<ListHsmsResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual Task<ListHsmsResponse> ListHsmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListHsmsRequest(); return ListHsmsAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual Task<ListHsmsResponse> ListHsmsAsync(ListHsmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHsmsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance; return InvokeAsync<ListHsmsResponse>(request, options, cancellationToken); } #endregion #region ListLunaClients /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual ListLunaClientsResponse ListLunaClients() { var request = new ListLunaClientsRequest(); return ListLunaClients(request); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual ListLunaClientsResponse ListLunaClients(ListLunaClientsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance; return Invoke<ListLunaClientsResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual Task<ListLunaClientsResponse> ListLunaClientsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListLunaClientsRequest(); return ListLunaClientsAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual Task<ListLunaClientsResponse> ListLunaClientsAsync(ListLunaClientsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance; return InvokeAsync<ListLunaClientsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region ModifyHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> public virtual ModifyHapgResponse ModifyHapg(ModifyHapgRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance; return Invoke<ModifyHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> public virtual Task<ModifyHapgResponse> ModifyHapgAsync(ModifyHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance; return InvokeAsync<ModifyHapgResponse>(request, options, cancellationToken); } #endregion #region ModifyHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> public virtual ModifyHsmResponse ModifyHsm(ModifyHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance; return Invoke<ModifyHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> public virtual Task<ModifyHsmResponse> ModifyHsmAsync(ModifyHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance; return InvokeAsync<ModifyHsmResponse>(request, options, cancellationToken); } #endregion #region ModifyLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> public virtual ModifyLunaClientResponse ModifyLunaClient(ModifyLunaClientRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance; return Invoke<ModifyLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> public virtual Task<ModifyLunaClientResponse> ModifyLunaClientAsync(ModifyLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance; return InvokeAsync<ModifyLunaClientResponse>(request, options, cancellationToken); } #endregion #region RemoveTagsFromResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> public virtual RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance; return Invoke<RemoveTagsFromResourceResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> public virtual Task<RemoveTagsFromResourceResponse> RemoveTagsFromResourceAsync(RemoveTagsFromResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance; return InvokeAsync<RemoveTagsFromResourceResponse>(request, options, cancellationToken); } #endregion } }
3,057
aws-sdk-net
aws
C#
/* * 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.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudHSM.Model; namespace Amazon.CloudHSM { /// <summary> /// Interface for accessing CloudHSM /// /// AWS CloudHSM Service /// <para> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// </para> /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// </summary> public partial interface IAmazonCloudHSM : IAmazonService, IDisposable { #region AddTagsToResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> Task<AddTagsToResourceResponse> AddTagsToResourceAsync(AddTagsToResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> CreateHapgResponse CreateHapg(string label); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> CreateHapgResponse CreateHapg(CreateHapgRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> Task<CreateHapgResponse> CreateHapgAsync(string label, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> Task<CreateHapgResponse> CreateHapgAsync(CreateHapgRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> CreateHsmResponse CreateHsm(CreateHsmRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> Task<CreateHsmResponse> CreateHsmAsync(CreateHsmRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> CreateLunaClientResponse CreateLunaClient(CreateLunaClientRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> Task<CreateLunaClientResponse> CreateLunaClientAsync(CreateLunaClientRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> DeleteHapgResponse DeleteHapg(string hapgArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> DeleteHapgResponse DeleteHapg(DeleteHapgRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> Task<DeleteHapgResponse> DeleteHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> Task<DeleteHapgResponse> DeleteHapgAsync(DeleteHapgRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> DeleteHsmResponse DeleteHsm(string hsmArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> DeleteHsmResponse DeleteHsm(DeleteHsmRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> Task<DeleteHsmResponse> DeleteHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> Task<DeleteHsmResponse> DeleteHsmAsync(DeleteHsmRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> DeleteLunaClientResponse DeleteLunaClient(string clientArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> Task<DeleteLunaClientResponse> DeleteLunaClientAsync(string clientArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> Task<DeleteLunaClientResponse> DeleteLunaClientAsync(DeleteLunaClientRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> DescribeHapgResponse DescribeHapg(string hapgArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> DescribeHapgResponse DescribeHapg(DescribeHapgRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> Task<DescribeHapgResponse> DescribeHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> Task<DescribeHapgResponse> DescribeHapgAsync(DescribeHapgRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> DescribeHsmResponse DescribeHsm(string hsmArn); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> DescribeHsmResponse DescribeHsm(DescribeHsmRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> Task<DescribeHsmResponse> DescribeHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> Task<DescribeHsmResponse> DescribeHsmAsync(DescribeHsmRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> DescribeLunaClientResponse DescribeLunaClient(DescribeLunaClientRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> Task<DescribeLunaClientResponse> DescribeLunaClientAsync(DescribeLunaClientRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetConfig /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> GetConfigResponse GetConfig(GetConfigRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> Task<GetConfigResponse> GetConfigAsync(GetConfigRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListAvailableZones /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> ListAvailableZonesResponse ListAvailableZones(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> ListAvailableZonesResponse ListAvailableZones(ListAvailableZonesRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> Task<ListAvailableZonesResponse> ListAvailableZonesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> Task<ListAvailableZonesResponse> ListAvailableZonesAsync(ListAvailableZonesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListHapgs /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> ListHapgsResponse ListHapgs(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> ListHapgsResponse ListHapgs(ListHapgsRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> Task<ListHapgsResponse> ListHapgsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> Task<ListHapgsResponse> ListHapgsAsync(ListHapgsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListHsms /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> ListHsmsResponse ListHsms(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> ListHsmsResponse ListHsms(ListHsmsRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> Task<ListHsmsResponse> ListHsmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> Task<ListHsmsResponse> ListHsmsAsync(ListHsmsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListLunaClients /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> ListLunaClientsResponse ListLunaClients(); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> ListLunaClientsResponse ListLunaClients(ListLunaClientsRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> Task<ListLunaClientsResponse> ListLunaClientsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> Task<ListLunaClientsResponse> ListLunaClientsAsync(ListLunaClientsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ModifyHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> ModifyHapgResponse ModifyHapg(ModifyHapgRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> Task<ModifyHapgResponse> ModifyHapgAsync(ModifyHapgRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ModifyHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> ModifyHsmResponse ModifyHsm(ModifyHsmRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> Task<ModifyHsmResponse> ModifyHsmAsync(ModifyHsmRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ModifyLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> ModifyLunaClientResponse ModifyLunaClient(ModifyLunaClientRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> Task<ModifyLunaClientResponse> ModifyLunaClientAsync(ModifyLunaClientRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RemoveTagsFromResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> Task<RemoveTagsFromResourceResponse> RemoveTagsFromResourceAsync(RemoveTagsFromResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
2,476
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Implementation for accessing CloudHSM /// /// AWS CloudHSM Service /// <para> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// </para> /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// </summary> public partial class AmazonCloudHSMClient : AmazonServiceClient, IAmazonCloudHSM { private static IServiceMetadata serviceMetadata = new AmazonCloudHSMMetadata(); #region Constructors /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudHSMClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig()) { } /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(AmazonCloudHSMConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudHSMClient(AWSCredentials credentials) : this(credentials, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Credentials and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(AWSCredentials credentials, AmazonCloudHSMConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudHSMConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudHSMConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig()) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudHSMConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudHSMClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudHSMClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCloudHSMClient Configuration Object</param> public AmazonCloudHSMClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudHSMConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCloudHSMEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> 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<AddTagsToResourceResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> public virtual Task<AddTagsToResourceResponse> AddTagsToResourceAsync(AddTagsToResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance; return InvokeAsync<AddTagsToResourceResponse>(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<CreateHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual Task<CreateHapgResponse> CreateHapgAsync(string label, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new CreateHapgRequest(); request.Label = label; return CreateHapgAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> public virtual Task<CreateHapgResponse> CreateHapgAsync(CreateHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHapgResponseUnmarshaller.Instance; return InvokeAsync<CreateHapgResponse>(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<CreateHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual Task<CreateHsmResponse> CreateHsmAsync(CreateHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return InvokeAsync<CreateHsmResponse>(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<CreateLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> public virtual Task<CreateLunaClientResponse> CreateLunaClientAsync(CreateLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLunaClientResponseUnmarshaller.Instance; return InvokeAsync<CreateLunaClientResponse>(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<DeleteHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual Task<DeleteHapgResponse> DeleteHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteHapgRequest(); request.HapgArn = hapgArn; return DeleteHapgAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> public virtual Task<DeleteHapgResponse> DeleteHapgAsync(DeleteHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHapgResponseUnmarshaller.Instance; return InvokeAsync<DeleteHapgResponse>(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<DeleteHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual Task<DeleteHsmResponse> DeleteHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteHsmRequest(); request.HsmArn = hsmArn; return DeleteHsmAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> public virtual Task<DeleteHsmResponse> DeleteHsmAsync(DeleteHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHsmResponseUnmarshaller.Instance; return InvokeAsync<DeleteHsmResponse>(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<DeleteLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual Task<DeleteLunaClientResponse> DeleteLunaClientAsync(string clientArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteLunaClientRequest(); request.ClientArn = clientArn; return DeleteLunaClientAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> public virtual Task<DeleteLunaClientResponse> DeleteLunaClientAsync(DeleteLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return InvokeAsync<DeleteLunaClientResponse>(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<DescribeHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual Task<DescribeHapgResponse> DescribeHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeHapgRequest(); request.HapgArn = hapgArn; return DescribeHapgAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> public virtual Task<DescribeHapgResponse> DescribeHapgAsync(DescribeHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHapgResponseUnmarshaller.Instance; return InvokeAsync<DescribeHapgResponse>(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<DescribeHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual Task<DescribeHsmResponse> DescribeHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeHsmRequest(); request.HsmArn = hsmArn; return DescribeHsmAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> public virtual Task<DescribeHsmResponse> DescribeHsmAsync(DescribeHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHsmResponseUnmarshaller.Instance; return InvokeAsync<DescribeHsmResponse>(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<DescribeLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> public virtual Task<DescribeLunaClientResponse> DescribeLunaClientAsync(DescribeLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLunaClientResponseUnmarshaller.Instance; return InvokeAsync<DescribeLunaClientResponse>(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<GetConfigResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> public virtual Task<GetConfigResponse> GetConfigAsync(GetConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigResponseUnmarshaller.Instance; return InvokeAsync<GetConfigResponse>(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<ListAvailableZonesResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual Task<ListAvailableZonesResponse> ListAvailableZonesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListAvailableZonesRequest(); return ListAvailableZonesAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> public virtual Task<ListAvailableZonesResponse> ListAvailableZonesAsync(ListAvailableZonesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAvailableZonesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAvailableZonesResponseUnmarshaller.Instance; return InvokeAsync<ListAvailableZonesResponse>(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<ListHapgsResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual Task<ListHapgsResponse> ListHapgsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListHapgsRequest(); return ListHapgsAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> public virtual Task<ListHapgsResponse> ListHapgsAsync(ListHapgsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHapgsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHapgsResponseUnmarshaller.Instance; return InvokeAsync<ListHapgsResponse>(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<ListHsmsResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual Task<ListHsmsResponse> ListHsmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListHsmsRequest(); return ListHsmsAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> public virtual Task<ListHsmsResponse> ListHsmsAsync(ListHsmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHsmsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHsmsResponseUnmarshaller.Instance; return InvokeAsync<ListHsmsResponse>(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<ListLunaClientsResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual Task<ListLunaClientsResponse> ListLunaClientsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new ListLunaClientsRequest(); return ListLunaClientsAsync(request, cancellationToken); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> public virtual Task<ListLunaClientsResponse> ListLunaClientsAsync(ListLunaClientsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLunaClientsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLunaClientsResponseUnmarshaller.Instance; return InvokeAsync<ListLunaClientsResponse>(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<ListTagsForResourceResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(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<ModifyHapgResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> public virtual Task<ModifyHapgResponse> ModifyHapgAsync(ModifyHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHapgRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHapgResponseUnmarshaller.Instance; return InvokeAsync<ModifyHapgResponse>(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<ModifyHsmResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> public virtual Task<ModifyHsmResponse> ModifyHsmAsync(ModifyHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyHsmResponseUnmarshaller.Instance; return InvokeAsync<ModifyHsmResponse>(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<ModifyLunaClientResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> public virtual Task<ModifyLunaClientResponse> ModifyLunaClientAsync(ModifyLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ModifyLunaClientRequestMarshaller.Instance; options.ResponseUnmarshaller = ModifyLunaClientResponseUnmarshaller.Instance; return InvokeAsync<ModifyLunaClientResponse>(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<RemoveTagsFromResourceResponse>(request, options); } /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> public virtual Task<RemoveTagsFromResourceResponse> RemoveTagsFromResourceAsync(RemoveTagsFromResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance; return InvokeAsync<RemoveTagsFromResourceResponse>(request, options, cancellationToken); } #endregion } }
1,948
aws-sdk-net
aws
C#
/* * 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.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudHSM.Model; namespace Amazon.CloudHSM { /// <summary> /// Interface for accessing CloudHSM /// /// AWS CloudHSM Service /// <para> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// </para> /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// </summary> public partial interface IAmazonCloudHSM : IAmazonService, IDisposable { #region AddTagsToResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. /// </para> /// /// <para> /// Each tag consists of a key and a value. Tag keys must be unique to each resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource">REST API Reference for AddTagsToResource Operation</seealso> Task<AddTagsToResourceResponse> AddTagsToResourceAsync(AddTagsToResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="label">The label of the new high-availability partition group.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> Task<CreateHapgResponse> CreateHapgAsync(string label, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates a high-availability partition group. A high-availability partition group is /// a group of partitions that spans multiple physical HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg">REST API Reference for CreateHapg Operation</seealso> Task<CreateHapgResponse> CreateHapgAsync(CreateHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an uninitialized HSM instance. /// </para> /// /// <para> /// There is an upfront fee charged for each HSM instance that you create with the <code>CreateHsm</code> /// operation. If you accidentally provision an HSM and want to request a refund, delete /// the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS /// Support Center</a>, create a new case, and select <b>Account and Billing Support</b>. /// </para> /// <important> /// <para> /// It can take up to 20 minutes to create and provision an HSM. You can monitor the status /// of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be initialized /// when the status changes to <code>RUNNING</code>. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm">REST API Reference for CreateHsm Operation</seealso> Task<CreateHsmResponse> CreateHsmAsync(CreateHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Creates an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient">REST API Reference for CreateLunaClient Operation</seealso> Task<CreateLunaClientResponse> CreateLunaClientAsync(CreateLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> Task<DeleteHapgResponse> DeleteHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg">REST API Reference for DeleteHapg Operation</seealso> Task<DeleteHapgResponse> DeleteHapgAsync(DeleteHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> Task<DeleteHsmResponse> DeleteHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes an HSM. After completion, this operation cannot be undone and your key material /// cannot be recovered. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm">REST API Reference for DeleteHsm Operation</seealso> Task<DeleteHsmResponse> DeleteHsmAsync(DeleteHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="clientArn">The ARN of the client to delete.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> Task<DeleteLunaClientResponse> DeleteLunaClientAsync(string clientArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Deletes a client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient">REST API Reference for DeleteLunaClient Operation</seealso> Task<DeleteLunaClientResponse> DeleteLunaClientAsync(DeleteLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="hapgArn">The ARN of the high-availability partition group to describe.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> Task<DescribeHapgResponse> DescribeHapgAsync(string hapgArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about a high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg">REST API Reference for DescribeHapg Operation</seealso> Task<DescribeHapgResponse> DescribeHapgAsync(DescribeHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="hsmArn">The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> Task<DescribeHsmResponse> DescribeHsmAsync(string hsmArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM. You can identify the HSM by its ARN or its serial /// number. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm">REST API Reference for DescribeHsm Operation</seealso> Task<DescribeHsmResponse> DescribeHsmAsync(DescribeHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves information about an HSM client. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient">REST API Reference for DescribeLunaClient Operation</seealso> Task<DescribeLunaClientResponse> DescribeLunaClientAsync(DescribeLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetConfig /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Gets the configuration files necessary to connect to all high availability partition /// groups the client is associated with. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetConfig service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetConfig service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig">REST API Reference for GetConfig Operation</seealso> Task<GetConfigResponse> GetConfigAsync(GetConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListAvailableZones /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> Task<ListAvailableZonesResponse> ListAvailableZonesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the Availability Zones that have available AWS CloudHSM capacity. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAvailableZones service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAvailableZones service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones">REST API Reference for ListAvailableZones Operation</seealso> Task<ListAvailableZonesResponse> ListAvailableZonesAsync(ListAvailableZonesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListHapgs /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> Task<ListHapgsResponse> ListHapgsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists the high-availability partition groups for the account. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHapgs</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHapgs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHapgs service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs">REST API Reference for ListHapgs Operation</seealso> Task<ListHapgsResponse> ListHapgsAsync(ListHapgsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListHsms /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> Task<ListHsmsResponse> ListHsmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Retrieves the identifiers of all of the HSMs provisioned for the current customer. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListHsms</code> to retrieve the next /// set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHsms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHsms service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms">REST API Reference for ListHsms Operation</seealso> Task<ListHsmsResponse> ListHsmsAsync(ListHsmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListLunaClients /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> Task<ListLunaClientsResponse> ListLunaClientsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Lists all of the clients. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> member. /// If more results are available, the <code>NextToken</code> member of the response contains /// a token that you pass in the next call to <code>ListLunaClients</code> to retrieve /// the next set of items. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListLunaClients service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListLunaClients service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients">REST API Reference for ListLunaClients Operation</seealso> Task<ListLunaClientsResponse> ListLunaClientsAsync(ListLunaClientsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Returns a list of all tags for the specified AWS CloudHSM resource. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ModifyHapg /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an existing high-availability partition group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHapg service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHapg service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg">REST API Reference for ModifyHapg Operation</seealso> Task<ModifyHapgResponse> ModifyHapgAsync(ModifyHapgRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ModifyHsm /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies an HSM. /// </para> /// <important> /// <para> /// 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. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyHsm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyHsm service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm">REST API Reference for ModifyHsm Operation</seealso> Task<ModifyHsmResponse> ModifyHsmAsync(ModifyHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ModifyLunaClient /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Modifies the certificate used by the client. /// </para> /// /// <para> /// This action can potentially start a workflow to install the new certificate on the /// client's HSMs. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyLunaClient service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ModifyLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient">REST API Reference for ModifyLunaClient Operation</seealso> Task<ModifyLunaClientResponse> ModifyLunaClientAsync(ModifyLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RemoveTagsFromResource /// <summary> /// This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a /// href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, /// the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM /// Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS /// CloudHSM Classic API Reference</a>. /// /// /// <para> /// <b>For information about the current version of AWS CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS /// CloudHSM</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS /// CloudHSM User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS /// CloudHSM API Reference</a>. /// </para> /// /// <para> /// Removes one or more tags from the specified AWS CloudHSM resource. /// </para> /// /// <para> /// To remove a tag, specify only the tag key to remove (not the value). To overwrite /// the value for an existing tag, use <a>AddTagsToResource</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromResource service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource">REST API Reference for RemoveTagsFromResource Operation</seealso> Task<RemoveTagsFromResourceResponse> RemoveTagsFromResourceAsync(RemoveTagsFromResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,359
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.CloudHSM")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudHSM. The AWS CloudHSM service helps you meet corporate, contractual and regulatory compliance requirements for data security by using dedicated Hardware Security Module (HSM) appliances within the AWS cloud. With CloudHSM, you control the encryption keys and cryptographic operations performed by the HSM.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudHSM. The AWS CloudHSM service helps you meet corporate, contractual and regulatory compliance requirements for data security by using dedicated Hardware Security Module (HSM) appliances within the AWS cloud. With CloudHSM, you control the encryption keys and cryptographic operations performed by the HSM.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudHSM. The AWS CloudHSM service helps you meet corporate, contractual and regulatory compliance requirements for data security by using dedicated Hardware Security Module (HSM) appliances within the AWS cloud. With CloudHSM, you control the encryption keys and cryptographic operations performed by the HSM.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudHSM. The AWS CloudHSM service helps you meet corporate, contractual and regulatory compliance requirements for data security by using dedicated Hardware Security Module (HSM) appliances within the AWS cloud. With CloudHSM, you control the encryption keys and cryptographic operations performed by the HSM.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.100.147")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * 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. */ using System.Diagnostics.CodeAnalysis; [module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.CloudHSMV2.Model.DescribeClustersRequest.#Filters")] [module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.CloudHSMV2.Model.DescribeBackupsRequest.#Filters")]
19
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudHSMV2.Internal; namespace Amazon.CloudHSMV2 { /// <summary> /// Configuration for accessing Amazon CloudHSMV2 service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudHSMV2Config : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudHSMV2Config() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudHSMV2DefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "cloudhsm"; this.EndpointProvider = new AmazonCloudHSMV2EndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "cloudhsmv2"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2017-04-28"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudHSMV2 { /// <summary> /// Configuration for accessing Amazon CloudHSMV2 service /// </summary> public static class AmazonCloudHSMV2DefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudHSMV2 /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudHSMV2.Endpoints { /// <summary> /// Contains parameters used for resolving CloudHSMV2 endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudHSMV2EndpointProvider and CloudHSMV2EndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudHSMV2EndpointParameters : EndpointParameters { /// <summary> /// CloudHSMV2EndpointParameters constructor /// </summary> public CloudHSMV2EndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
78
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudHSMV2 { ///<summary> /// Common exception for the CloudHSMV2 service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudHSMV2Exception : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudHSMV2Exception /// </summary> /// <param name="message"></param> public AmazonCloudHSMV2Exception(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudHSMV2Exception /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudHSMV2Exception(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudHSMV2Exception /// </summary> /// <param name="innerException"></param> public AmazonCloudHSMV2Exception(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudHSMV2Exception /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudHSMV2Exception(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudHSMV2Exception /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudHSMV2Exception(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonCloudHSMV2Exception class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonCloudHSMV2Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudHSMV2 { /// <summary> /// Constants used for properties of type BackupPolicy. /// </summary> public class BackupPolicy : ConstantClass { /// <summary> /// Constant DEFAULT for BackupPolicy /// </summary> public static readonly BackupPolicy DEFAULT = new BackupPolicy("DEFAULT"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public BackupPolicy(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static BackupPolicy FindValue(string value) { return FindValue<BackupPolicy>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator BackupPolicy(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type BackupRetentionType. /// </summary> public class BackupRetentionType : ConstantClass { /// <summary> /// Constant DAYS for BackupRetentionType /// </summary> public static readonly BackupRetentionType DAYS = new BackupRetentionType("DAYS"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public BackupRetentionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static BackupRetentionType FindValue(string value) { return FindValue<BackupRetentionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator BackupRetentionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type BackupState. /// </summary> public class BackupState : ConstantClass { /// <summary> /// Constant CREATE_IN_PROGRESS for BackupState /// </summary> public static readonly BackupState CREATE_IN_PROGRESS = new BackupState("CREATE_IN_PROGRESS"); /// <summary> /// Constant DELETED for BackupState /// </summary> public static readonly BackupState DELETED = new BackupState("DELETED"); /// <summary> /// Constant PENDING_DELETION for BackupState /// </summary> public static readonly BackupState PENDING_DELETION = new BackupState("PENDING_DELETION"); /// <summary> /// Constant READY for BackupState /// </summary> public static readonly BackupState READY = new BackupState("READY"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public BackupState(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static BackupState FindValue(string value) { return FindValue<BackupState>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator BackupState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ClusterState. /// </summary> public class ClusterState : ConstantClass { /// <summary> /// Constant ACTIVE for ClusterState /// </summary> public static readonly ClusterState ACTIVE = new ClusterState("ACTIVE"); /// <summary> /// Constant CREATE_IN_PROGRESS for ClusterState /// </summary> public static readonly ClusterState CREATE_IN_PROGRESS = new ClusterState("CREATE_IN_PROGRESS"); /// <summary> /// Constant DEGRADED for ClusterState /// </summary> public static readonly ClusterState DEGRADED = new ClusterState("DEGRADED"); /// <summary> /// Constant DELETE_IN_PROGRESS for ClusterState /// </summary> public static readonly ClusterState DELETE_IN_PROGRESS = new ClusterState("DELETE_IN_PROGRESS"); /// <summary> /// Constant DELETED for ClusterState /// </summary> public static readonly ClusterState DELETED = new ClusterState("DELETED"); /// <summary> /// Constant INITIALIZE_IN_PROGRESS for ClusterState /// </summary> public static readonly ClusterState INITIALIZE_IN_PROGRESS = new ClusterState("INITIALIZE_IN_PROGRESS"); /// <summary> /// Constant INITIALIZED for ClusterState /// </summary> public static readonly ClusterState INITIALIZED = new ClusterState("INITIALIZED"); /// <summary> /// Constant UNINITIALIZED for ClusterState /// </summary> public static readonly ClusterState UNINITIALIZED = new ClusterState("UNINITIALIZED"); /// <summary> /// Constant UPDATE_IN_PROGRESS for ClusterState /// </summary> public static readonly ClusterState UPDATE_IN_PROGRESS = new ClusterState("UPDATE_IN_PROGRESS"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ClusterState(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ClusterState FindValue(string value) { return FindValue<ClusterState>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ClusterState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HsmState. /// </summary> public class HsmState : ConstantClass { /// <summary> /// Constant ACTIVE for HsmState /// </summary> public static readonly HsmState ACTIVE = new HsmState("ACTIVE"); /// <summary> /// Constant CREATE_IN_PROGRESS for HsmState /// </summary> public static readonly HsmState CREATE_IN_PROGRESS = new HsmState("CREATE_IN_PROGRESS"); /// <summary> /// Constant DEGRADED for HsmState /// </summary> public static readonly HsmState DEGRADED = new HsmState("DEGRADED"); /// <summary> /// Constant DELETE_IN_PROGRESS for HsmState /// </summary> public static readonly HsmState DELETE_IN_PROGRESS = new HsmState("DELETE_IN_PROGRESS"); /// <summary> /// Constant DELETED for HsmState /// </summary> public static readonly HsmState DELETED = new HsmState("DELETED"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public HsmState(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static HsmState FindValue(string value) { return FindValue<HsmState>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator HsmState(string value) { return FindValue(value); } } }
316
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.CloudHSMV2.Internal { /// <summary> /// Amazon CloudHSMV2 endpoint provider. /// Resolves endpoint for given set of CloudHSMV2EndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudHSMV2EndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudHSMV2EndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudhsmv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://cloudhsmv2-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://cloudhsmv2.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://cloudhsmv2.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
99
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudHSMV2.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudHSMV2.Internal { /// <summary> /// Amazon CloudHSMV2 endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudHSMV2 service requests. /// Collects values for CloudHSMV2EndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudHSMV2EndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudHSMV2EndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudHSMV2Config)requestContext.ClientConfig; var result = new CloudHSMV2EndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Internal { /// <summary> /// Service metadata for Amazon CloudHSMV2 service /// </summary> public partial class AmazonCloudHSMV2Metadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudHSM V2"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudHSMV2 { /// <summary> /// Base class for CloudHSMV2 operation requests. /// </summary> public partial class AmazonCloudHSMV2Request : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Contains information about a backup of an AWS CloudHSM cluster. All backup objects /// contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, /// and <code>CreateTimestamp</code> parameters. Backups that were copied into a destination /// region additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>, /// <code>SourceCluster</code>, and <code>SourceRegion</code> parameters. A backup that /// is pending deletion will include the <code>DeleteTimestamp</code> parameter. /// </summary> public partial class Backup { private string _backupId; private BackupState _backupState; private string _clusterId; private DateTime? _copyTimestamp; private DateTime? _createTimestamp; private DateTime? _deleteTimestamp; private bool? _neverExpires; private string _sourceBackup; private string _sourceCluster; private string _sourceRegion; private List<Tag> _tagList = new List<Tag>(); /// <summary> /// Gets and sets the property BackupId. /// <para> /// The identifier (ID) of the backup. /// </para> /// </summary> [AWSProperty(Required=true)] public string BackupId { get { return this._backupId; } set { this._backupId = value; } } // Check to see if BackupId property is set internal bool IsSetBackupId() { return this._backupId != null; } /// <summary> /// Gets and sets the property BackupState. /// <para> /// The state of the backup. /// </para> /// </summary> public BackupState BackupState { get { return this._backupState; } set { this._backupState = value; } } // Check to see if BackupState property is set internal bool IsSetBackupState() { return this._backupState != null; } /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the cluster that was backed up. /// </para> /// </summary> public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } /// <summary> /// Gets and sets the property CopyTimestamp. /// <para> /// The date and time when the backup was copied from a source backup. /// </para> /// </summary> public DateTime CopyTimestamp { get { return this._copyTimestamp.GetValueOrDefault(); } set { this._copyTimestamp = value; } } // Check to see if CopyTimestamp property is set internal bool IsSetCopyTimestamp() { return this._copyTimestamp.HasValue; } /// <summary> /// Gets and sets the property CreateTimestamp. /// <para> /// The date and time when the backup was created. /// </para> /// </summary> public DateTime CreateTimestamp { get { return this._createTimestamp.GetValueOrDefault(); } set { this._createTimestamp = value; } } // Check to see if CreateTimestamp property is set internal bool IsSetCreateTimestamp() { return this._createTimestamp.HasValue; } /// <summary> /// Gets and sets the property DeleteTimestamp. /// <para> /// The date and time when the backup will be permanently deleted. /// </para> /// </summary> public DateTime DeleteTimestamp { get { return this._deleteTimestamp.GetValueOrDefault(); } set { this._deleteTimestamp = value; } } // Check to see if DeleteTimestamp property is set internal bool IsSetDeleteTimestamp() { return this._deleteTimestamp.HasValue; } /// <summary> /// Gets and sets the property NeverExpires. /// <para> /// Specifies whether the service should exempt a backup from the retention policy for /// the cluster. <code>True</code> exempts a backup from the retention policy. <code>False</code> /// means the service applies the backup retention policy defined at the cluster. /// </para> /// </summary> public bool NeverExpires { get { return this._neverExpires.GetValueOrDefault(); } set { this._neverExpires = value; } } // Check to see if NeverExpires property is set internal bool IsSetNeverExpires() { return this._neverExpires.HasValue; } /// <summary> /// Gets and sets the property SourceBackup. /// <para> /// The identifier (ID) of the source backup from which the new backup was copied. /// </para> /// </summary> public string SourceBackup { get { return this._sourceBackup; } set { this._sourceBackup = value; } } // Check to see if SourceBackup property is set internal bool IsSetSourceBackup() { return this._sourceBackup != null; } /// <summary> /// Gets and sets the property SourceCluster. /// <para> /// The identifier (ID) of the cluster containing the source backup from which the new /// backup was copied. /// </para> /// </summary> public string SourceCluster { get { return this._sourceCluster; } set { this._sourceCluster = value; } } // Check to see if SourceCluster property is set internal bool IsSetSourceCluster() { return this._sourceCluster != null; } /// <summary> /// Gets and sets the property SourceRegion. /// <para> /// The AWS Region that contains the source backup from which the new backup was copied. /// </para> /// </summary> public string SourceRegion { get { return this._sourceRegion; } set { this._sourceRegion = value; } } // Check to see if SourceRegion property is set internal bool IsSetSourceRegion() { return this._sourceRegion != null; } /// <summary> /// Gets and sets the property TagList. /// <para> /// The list of tags for the backup. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } } }
257
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// A policy that defines the number of days to retain backups. /// </summary> public partial class BackupRetentionPolicy { private BackupRetentionType _type; private string _value; /// <summary> /// Gets and sets the property Type. /// <para> /// The type of backup retention policy. For the <code>DAYS</code> type, the value is /// the number of days to retain backups. /// </para> /// </summary> public BackupRetentionType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// Use a value between 7 - 379. /// </para> /// </summary> [AWSProperty(Min=1, Max=3)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Contains one or more certificates or a certificate signing request (CSR). /// </summary> public partial class Certificates { private string _awsHardwareCertificate; private string _clusterCertificate; private string _clusterCsr; private string _hsmCertificate; private string _manufacturerHardwareCertificate; /// <summary> /// Gets and sets the property AwsHardwareCertificate. /// <para> /// The HSM hardware certificate issued (signed) by AWS CloudHSM. /// </para> /// </summary> [AWSProperty(Max=5000)] public string AwsHardwareCertificate { get { return this._awsHardwareCertificate; } set { this._awsHardwareCertificate = value; } } // Check to see if AwsHardwareCertificate property is set internal bool IsSetAwsHardwareCertificate() { return this._awsHardwareCertificate != null; } /// <summary> /// Gets and sets the property ClusterCertificate. /// <para> /// The cluster certificate issued (signed) by the issuing certificate authority (CA) /// of the cluster's owner. /// </para> /// </summary> [AWSProperty(Max=5000)] public string ClusterCertificate { get { return this._clusterCertificate; } set { this._clusterCertificate = value; } } // Check to see if ClusterCertificate property is set internal bool IsSetClusterCertificate() { return this._clusterCertificate != null; } /// <summary> /// Gets and sets the property ClusterCsr. /// <para> /// The cluster's certificate signing request (CSR). The CSR exists only when the cluster's /// state is <code>UNINITIALIZED</code>. /// </para> /// </summary> [AWSProperty(Max=5000)] public string ClusterCsr { get { return this._clusterCsr; } set { this._clusterCsr = value; } } // Check to see if ClusterCsr property is set internal bool IsSetClusterCsr() { return this._clusterCsr != null; } /// <summary> /// Gets and sets the property HsmCertificate. /// <para> /// The HSM certificate issued (signed) by the HSM hardware. /// </para> /// </summary> [AWSProperty(Max=5000)] public string HsmCertificate { get { return this._hsmCertificate; } set { this._hsmCertificate = value; } } // Check to see if HsmCertificate property is set internal bool IsSetHsmCertificate() { return this._hsmCertificate != null; } /// <summary> /// Gets and sets the property ManufacturerHardwareCertificate. /// <para> /// The HSM hardware certificate issued (signed) by the hardware manufacturer. /// </para> /// </summary> [AWSProperty(Max=5000)] public string ManufacturerHardwareCertificate { get { return this._manufacturerHardwareCertificate; } set { this._manufacturerHardwareCertificate = value; } } // Check to see if ManufacturerHardwareCertificate property is set internal bool IsSetManufacturerHardwareCertificate() { return this._manufacturerHardwareCertificate != null; } } }
140
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// The request was rejected because the requester does not have permission to perform /// the requested operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudHsmAccessDeniedException : AmazonCloudHSMV2Exception { /// <summary> /// Constructs a new CloudHsmAccessDeniedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudHsmAccessDeniedException(string message) : base(message) {} /// <summary> /// Construct instance of CloudHsmAccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudHsmAccessDeniedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudHsmAccessDeniedException /// </summary> /// <param name="innerException"></param> public CloudHsmAccessDeniedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudHsmAccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmAccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudHsmAccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmAccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudHsmAccessDeniedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudHsmAccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// The request was rejected because of an AWS CloudHSM internal failure. The request /// can be retried. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudHsmInternalFailureException : AmazonCloudHSMV2Exception { /// <summary> /// Constructs a new CloudHsmInternalFailureException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudHsmInternalFailureException(string message) : base(message) {} /// <summary> /// Construct instance of CloudHsmInternalFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudHsmInternalFailureException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudHsmInternalFailureException /// </summary> /// <param name="innerException"></param> public CloudHsmInternalFailureException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudHsmInternalFailureException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmInternalFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudHsmInternalFailureException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmInternalFailureException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudHsmInternalFailureException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudHsmInternalFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// The request was rejected because it is not a valid request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudHsmInvalidRequestException : AmazonCloudHSMV2Exception { /// <summary> /// Constructs a new CloudHsmInvalidRequestException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudHsmInvalidRequestException(string message) : base(message) {} /// <summary> /// Construct instance of CloudHsmInvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudHsmInvalidRequestException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudHsmInvalidRequestException /// </summary> /// <param name="innerException"></param> public CloudHsmInvalidRequestException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudHsmInvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmInvalidRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudHsmInvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmInvalidRequestException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudHsmInvalidRequestException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudHsmInvalidRequestException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// The request was rejected because it refers to a resource that cannot be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudHsmResourceNotFoundException : AmazonCloudHSMV2Exception { /// <summary> /// Constructs a new CloudHsmResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudHsmResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of CloudHsmResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudHsmResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudHsmResourceNotFoundException /// </summary> /// <param name="innerException"></param> public CloudHsmResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudHsmResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudHsmResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudHsmResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudHsmResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// The request was rejected because an error occurred. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudHsmServiceException : AmazonCloudHSMV2Exception { /// <summary> /// Constructs a new CloudHsmServiceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudHsmServiceException(string message) : base(message) {} /// <summary> /// Construct instance of CloudHsmServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudHsmServiceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudHsmServiceException /// </summary> /// <param name="innerException"></param> public CloudHsmServiceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudHsmServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudHsmServiceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmServiceException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudHsmServiceException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudHsmServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// The request was rejected because of a tagging failure. Verify the tag conditions in /// all applicable policies, and then retry the request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CloudHsmTagException : AmazonCloudHSMV2Exception { /// <summary> /// Constructs a new CloudHsmTagException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CloudHsmTagException(string message) : base(message) {} /// <summary> /// Construct instance of CloudHsmTagException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CloudHsmTagException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CloudHsmTagException /// </summary> /// <param name="innerException"></param> public CloudHsmTagException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CloudHsmTagException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmTagException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CloudHsmTagException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CloudHsmTagException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CloudHsmTagException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CloudHsmTagException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Contains information about an AWS CloudHSM cluster. /// </summary> public partial class Cluster { private BackupPolicy _backupPolicy; private BackupRetentionPolicy _backupRetentionPolicy; private Certificates _certificates; private string _clusterId; private DateTime? _createTimestamp; private List<Hsm> _hsms = new List<Hsm>(); private string _hsmType; private string _preCoPassword; private string _securityGroup; private string _sourceBackupId; private ClusterState _state; private string _stateMessage; private Dictionary<string, string> _subnetMapping = new Dictionary<string, string>(); private List<Tag> _tagList = new List<Tag>(); private string _vpcId; /// <summary> /// Gets and sets the property BackupPolicy. /// <para> /// The cluster's backup policy. /// </para> /// </summary> public BackupPolicy BackupPolicy { get { return this._backupPolicy; } set { this._backupPolicy = value; } } // Check to see if BackupPolicy property is set internal bool IsSetBackupPolicy() { return this._backupPolicy != null; } /// <summary> /// Gets and sets the property BackupRetentionPolicy. /// <para> /// A policy that defines how the service retains backups. /// </para> /// </summary> public BackupRetentionPolicy BackupRetentionPolicy { get { return this._backupRetentionPolicy; } set { this._backupRetentionPolicy = value; } } // Check to see if BackupRetentionPolicy property is set internal bool IsSetBackupRetentionPolicy() { return this._backupRetentionPolicy != null; } /// <summary> /// Gets and sets the property Certificates. /// <para> /// Contains one or more certificates or a certificate signing request (CSR). /// </para> /// </summary> public Certificates Certificates { get { return this._certificates; } set { this._certificates = value; } } // Check to see if Certificates property is set internal bool IsSetCertificates() { return this._certificates != null; } /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The cluster's identifier (ID). /// </para> /// </summary> public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } /// <summary> /// Gets and sets the property CreateTimestamp. /// <para> /// The date and time when the cluster was created. /// </para> /// </summary> public DateTime CreateTimestamp { get { return this._createTimestamp.GetValueOrDefault(); } set { this._createTimestamp = value; } } // Check to see if CreateTimestamp property is set internal bool IsSetCreateTimestamp() { return this._createTimestamp.HasValue; } /// <summary> /// Gets and sets the property Hsms. /// <para> /// Contains information about the HSMs in the cluster. /// </para> /// </summary> public List<Hsm> Hsms { get { return this._hsms; } set { this._hsms = value; } } // Check to see if Hsms property is set internal bool IsSetHsms() { return this._hsms != null && this._hsms.Count > 0; } /// <summary> /// Gets and sets the property HsmType. /// <para> /// The type of HSM that the cluster contains. /// </para> /// </summary> public string HsmType { get { return this._hsmType; } set { this._hsmType = value; } } // Check to see if HsmType property is set internal bool IsSetHsmType() { return this._hsmType != null; } /// <summary> /// Gets and sets the property PreCoPassword. /// <para> /// The default password for the cluster's Pre-Crypto Officer (PRECO) user. /// </para> /// </summary> [AWSProperty(Min=7, Max=32)] public string PreCoPassword { get { return this._preCoPassword; } set { this._preCoPassword = value; } } // Check to see if PreCoPassword property is set internal bool IsSetPreCoPassword() { return this._preCoPassword != null; } /// <summary> /// Gets and sets the property SecurityGroup. /// <para> /// The identifier (ID) of the cluster's security group. /// </para> /// </summary> public string SecurityGroup { get { return this._securityGroup; } set { this._securityGroup = value; } } // Check to see if SecurityGroup property is set internal bool IsSetSecurityGroup() { return this._securityGroup != null; } /// <summary> /// Gets and sets the property SourceBackupId. /// <para> /// The identifier (ID) of the backup used to create the cluster. This value exists only /// when the cluster was created from a backup. /// </para> /// </summary> public string SourceBackupId { get { return this._sourceBackupId; } set { this._sourceBackupId = value; } } // Check to see if SourceBackupId property is set internal bool IsSetSourceBackupId() { return this._sourceBackupId != null; } /// <summary> /// Gets and sets the property State. /// <para> /// The cluster's state. /// </para> /// </summary> public ClusterState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property StateMessage. /// <para> /// A description of the cluster's state. /// </para> /// </summary> [AWSProperty(Max=300)] public string StateMessage { get { return this._stateMessage; } set { this._stateMessage = value; } } // Check to see if StateMessage property is set internal bool IsSetStateMessage() { return this._stateMessage != null; } /// <summary> /// Gets and sets the property SubnetMapping. /// <para> /// A map from availability zone to the cluster’s subnet in that availability zone. /// </para> /// </summary> public Dictionary<string, string> SubnetMapping { get { return this._subnetMapping; } set { this._subnetMapping = value; } } // Check to see if SubnetMapping property is set internal bool IsSetSubnetMapping() { return this._subnetMapping != null && this._subnetMapping.Count > 0; } /// <summary> /// Gets and sets the property TagList. /// <para> /// The list of tags for the cluster. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } /// <summary> /// Gets and sets the property VpcId. /// <para> /// The identifier (ID) of the virtual private cloud (VPC) that contains the cluster. /// </para> /// </summary> public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }
327
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the CopyBackupToRegion operation. /// Copy an AWS CloudHSM cluster backup to a different region. /// </summary> public partial class CopyBackupToRegionRequest : AmazonCloudHSMV2Request { private string _backupId; private string _destinationRegion; private List<Tag> _tagList = new List<Tag>(); /// <summary> /// Gets and sets the property BackupId. /// <para> /// The ID of the backup that will be copied to the destination region. /// </para> /// </summary> [AWSProperty(Required=true)] public string BackupId { get { return this._backupId; } set { this._backupId = value; } } // Check to see if BackupId property is set internal bool IsSetBackupId() { return this._backupId != null; } /// <summary> /// Gets and sets the property DestinationRegion. /// <para> /// The AWS region that will contain your copied CloudHSM cluster backup. /// </para> /// </summary> [AWSProperty(Required=true)] public string DestinationRegion { get { return this._destinationRegion; } set { this._destinationRegion = value; } } // Check to see if DestinationRegion property is set internal bool IsSetDestinationRegion() { return this._destinationRegion != null; } /// <summary> /// Gets and sets the property TagList. /// <para> /// Tags to apply to the destination backup during creation. If you specify tags, only /// these tags will be applied to the destination backup. If you do not specify tags, /// the service copies tags from the source backup to the destination backup. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } } }
101
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the CopyBackupToRegion operation. /// </summary> public partial class CopyBackupToRegionResponse : AmazonWebServiceResponse { private DestinationBackup _destinationBackup; /// <summary> /// Gets and sets the property DestinationBackup. /// <para> /// Information on the backup that will be copied to the destination region, including /// CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of /// the destination backup will be the same as that of the source backup. /// </para> /// /// <para> /// You will need to use the <code>sourceBackupID</code> returned in this operation to /// use the <a>DescribeBackups</a> operation on the backup that will be copied to the /// destination region. /// </para> /// </summary> public DestinationBackup DestinationBackup { get { return this._destinationBackup; } set { this._destinationBackup = value; } } // Check to see if DestinationBackup property is set internal bool IsSetDestinationBackup() { return this._destinationBackup != null; } } }
65
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the CreateCluster operation. /// Creates a new AWS CloudHSM cluster. /// </summary> public partial class CreateClusterRequest : AmazonCloudHSMV2Request { private BackupRetentionPolicy _backupRetentionPolicy; private string _hsmType; private string _sourceBackupId; private List<string> _subnetIds = new List<string>(); private List<Tag> _tagList = new List<Tag>(); /// <summary> /// Gets and sets the property BackupRetentionPolicy. /// <para> /// A policy that defines how the service retains backups. /// </para> /// </summary> public BackupRetentionPolicy BackupRetentionPolicy { get { return this._backupRetentionPolicy; } set { this._backupRetentionPolicy = value; } } // Check to see if BackupRetentionPolicy property is set internal bool IsSetBackupRetentionPolicy() { return this._backupRetentionPolicy != null; } /// <summary> /// Gets and sets the property HsmType. /// <para> /// The type of HSM to use in the cluster. Currently the only allowed value is <code>hsm1.medium</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string HsmType { get { return this._hsmType; } set { this._hsmType = value; } } // Check to see if HsmType property is set internal bool IsSetHsmType() { return this._hsmType != null; } /// <summary> /// Gets and sets the property SourceBackupId. /// <para> /// The identifier (ID) of the cluster backup to restore. Use this value to restore the /// cluster from a backup instead of creating a new cluster. To find the backup ID, use /// <a>DescribeBackups</a>. /// </para> /// </summary> public string SourceBackupId { get { return this._sourceBackupId; } set { this._sourceBackupId = value; } } // Check to see if SourceBackupId property is set internal bool IsSetSourceBackupId() { return this._sourceBackupId != null; } /// <summary> /// Gets and sets the property SubnetIds. /// <para> /// The identifiers (IDs) of the subnets where you are creating the cluster. You must /// specify at least one subnet. If you specify multiple subnets, they must meet the following /// criteria: /// </para> /// <ul> <li> /// <para> /// All subnets must be in the same virtual private cloud (VPC). /// </para> /// </li> <li> /// <para> /// You can specify only one subnet per Availability Zone. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<string> SubnetIds { get { return this._subnetIds; } set { this._subnetIds = value; } } // Check to see if SubnetIds property is set internal bool IsSetSubnetIds() { return this._subnetIds != null && this._subnetIds.Count > 0; } /// <summary> /// Gets and sets the property TagList. /// <para> /// Tags to apply to the CloudHSM cluster during creation. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } } }
150
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the CreateCluster operation. /// </summary> public partial class CreateClusterResponse : AmazonWebServiceResponse { private Cluster _cluster; /// <summary> /// Gets and sets the property Cluster. /// <para> /// Information about the cluster that was created. /// </para> /// </summary> public Cluster Cluster { get { return this._cluster; } set { this._cluster = value; } } // Check to see if Cluster property is set internal bool IsSetCluster() { return this._cluster != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the CreateHsm operation. /// Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster. /// </summary> public partial class CreateHsmRequest : AmazonCloudHSMV2Request { private string _availabilityZone; private string _clusterId; private string _ipAddress; /// <summary> /// Gets and sets the property AvailabilityZone. /// <para> /// The Availability Zone where you are creating the HSM. To find the cluster's Availability /// Zones, use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the HSM's cluster. To find the cluster ID, use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } /// <summary> /// Gets and sets the property IpAddress. /// <para> /// The HSM's IP address. If you specify an IP address, use an available address from /// the subnet that maps to the Availability Zone where you are creating the HSM. If you /// don't specify an IP address, one is chosen for you from that subnet. /// </para> /// </summary> public string IpAddress { get { return this._ipAddress; } set { this._ipAddress = value; } } // Check to see if IpAddress property is set internal bool IsSetIpAddress() { return this._ipAddress != null; } } }
101
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the CreateHsm operation. /// </summary> public partial class CreateHsmResponse : AmazonWebServiceResponse { private Hsm _hsm; /// <summary> /// Gets and sets the property Hsm. /// <para> /// Information about the HSM that was created. /// </para> /// </summary> public Hsm Hsm { get { return this._hsm; } set { this._hsm = value; } } // Check to see if Hsm property is set internal bool IsSetHsm() { return this._hsm != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the DeleteBackup operation. /// Deletes a specified AWS CloudHSM backup. A backup can be restored up to 7 days after /// the DeleteBackup request is made. For more information on restoring a backup, see /// <a>RestoreBackup</a>. /// </summary> public partial class DeleteBackupRequest : AmazonCloudHSMV2Request { private string _backupId; /// <summary> /// Gets and sets the property BackupId. /// <para> /// The ID of the backup to be deleted. To find the ID of a backup, use the <a>DescribeBackups</a> /// operation. /// </para> /// </summary> [AWSProperty(Required=true)] public string BackupId { get { return this._backupId; } set { this._backupId = value; } } // Check to see if BackupId property is set internal bool IsSetBackupId() { return this._backupId != null; } } }
62
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the DeleteBackup operation. /// </summary> public partial class DeleteBackupResponse : AmazonWebServiceResponse { private Backup _backup; /// <summary> /// Gets and sets the property Backup. /// <para> /// Information on the <code>Backup</code> object deleted. /// </para> /// </summary> public Backup Backup { get { return this._backup; } set { this._backup = value; } } // Check to see if Backup property is set internal bool IsSetBackup() { return this._backup != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the DeleteCluster operation. /// Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must /// delete all HSMs in the cluster. To see if the cluster contains any HSMs, use <a>DescribeClusters</a>. /// To delete an HSM, use <a>DeleteHsm</a>. /// </summary> public partial class DeleteClusterRequest : AmazonCloudHSMV2Request { private string _clusterId; /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the cluster that you are deleting. To find the cluster ID, /// use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } } }
62
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the DeleteCluster operation. /// </summary> public partial class DeleteClusterResponse : AmazonWebServiceResponse { private Cluster _cluster; /// <summary> /// Gets and sets the property Cluster. /// <para> /// Information about the cluster that was deleted. /// </para> /// </summary> public Cluster Cluster { get { return this._cluster; } set { this._cluster = value; } } // Check to see if Cluster property is set internal bool IsSetCluster() { return this._cluster != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the DeleteHsm operation. /// Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the /// IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. /// You need to specify only one of these values. To find these values, use <a>DescribeClusters</a>. /// </summary> public partial class DeleteHsmRequest : AmazonCloudHSMV2Request { private string _clusterId; private string _eniId; private string _eniIp; private string _hsmId; /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the cluster that contains the HSM that you are deleting. /// </para> /// </summary> [AWSProperty(Required=true)] public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } /// <summary> /// Gets and sets the property EniId. /// <para> /// The identifier (ID) of the elastic network interface (ENI) of the HSM that you are /// deleting. /// </para> /// </summary> public string EniId { get { return this._eniId; } set { this._eniId = value; } } // Check to see if EniId property is set internal bool IsSetEniId() { return this._eniId != null; } /// <summary> /// Gets and sets the property EniIp. /// <para> /// The IP address of the elastic network interface (ENI) of the HSM that you are deleting. /// </para> /// </summary> public string EniIp { get { return this._eniIp; } set { this._eniIp = value; } } // Check to see if EniIp property is set internal bool IsSetEniIp() { return this._eniIp != null; } /// <summary> /// Gets and sets the property HsmId. /// <para> /// The identifier (ID) of the HSM that you are deleting. /// </para> /// </summary> public string HsmId { get { return this._hsmId; } set { this._hsmId = value; } } // Check to see if HsmId property is set internal bool IsSetHsmId() { return this._hsmId != null; } } }
119
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the DeleteHsm operation. /// </summary> public partial class DeleteHsmResponse : AmazonWebServiceResponse { private string _hsmId; /// <summary> /// Gets and sets the property HsmId. /// <para> /// The identifier (ID) of the HSM that was deleted. /// </para> /// </summary> public string HsmId { get { return this._hsmId; } set { this._hsmId = value; } } // Check to see if HsmId property is set internal bool IsSetHsmId() { return this._hsmId != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the DescribeBackups operation. /// Gets information about backups of AWS CloudHSM clusters. /// /// /// <para> /// This is a paginated operation, which means that each response might contain only a /// subset of all the backups. When the response contains only a subset of backups, it /// includes a <code>NextToken</code> value. Use this value in a subsequent <code>DescribeBackups</code> /// request to get more backups. When you receive a response with no <code>NextToken</code> /// (or an empty or null value), that means there are no more backups to get. /// </para> /// </summary> public partial class DescribeBackupsRequest : AmazonCloudHSMV2Request { private Dictionary<string, List<string>> _filters = new Dictionary<string, List<string>>(); private int? _maxResults; private string _nextToken; private bool? _sortAscending; /// <summary> /// Gets and sets the property Filters. /// <para> /// One or more filters to limit the items returned in the response. /// </para> /// /// <para> /// Use the <code>backupIds</code> filter to return only the specified backups. Specify /// backups by their backup identifier (ID). /// </para> /// /// <para> /// Use the <code>sourceBackupIds</code> filter to return only the backups created from /// a source backup. The <code>sourceBackupID</code> of a source backup is returned by /// the <a>CopyBackupToRegion</a> operation. /// </para> /// /// <para> /// Use the <code>clusterIds</code> filter to return only the backups for the specified /// clusters. Specify clusters by their cluster identifier (ID). /// </para> /// /// <para> /// Use the <code>states</code> filter to return only backups that match the specified /// state. /// </para> /// /// <para> /// Use the <code>neverExpires</code> filter to return backups filtered by the value in /// the <code>neverExpires</code> parameter. <code>True</code> returns all backups exempt /// from the backup retention policy. <code>False</code> returns all backups with a backup /// retention policy defined at the cluster. /// </para> /// </summary> public Dictionary<string, List<string>> Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of backups to return in the response. When there are more backups /// than the number you specify, the response contains a <code>NextToken</code> value. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The <code>NextToken</code> value that you received in the previous response. Use this /// value to get more backups. /// </para> /// </summary> [AWSProperty(Max=256)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property SortAscending. /// <para> /// Designates whether or not to sort the return backups by ascending chronological order /// of generation. /// </para> /// </summary> public bool SortAscending { get { return this._sortAscending.GetValueOrDefault(); } set { this._sortAscending = value; } } // Check to see if SortAscending property is set internal bool IsSetSortAscending() { return this._sortAscending.HasValue; } } }
157
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the DescribeBackups operation. /// </summary> public partial class DescribeBackupsResponse : AmazonWebServiceResponse { private List<Backup> _backups = new List<Backup>(); private string _nextToken; /// <summary> /// Gets and sets the property Backups. /// <para> /// A list of backups. /// </para> /// </summary> public List<Backup> Backups { get { return this._backups; } set { this._backups = value; } } // Check to see if Backups property is set internal bool IsSetBackups() { return this._backups != null && this._backups.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// An opaque string that indicates that the response contains only a subset of backups. /// Use this value in a subsequent <code>DescribeBackups</code> request to get more backups. /// </para> /// </summary> [AWSProperty(Max=256)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the DescribeClusters operation. /// Gets information about AWS CloudHSM clusters. /// /// /// <para> /// This is a paginated operation, which means that each response might contain only a /// subset of all the clusters. When the response contains only a subset of clusters, /// it includes a <code>NextToken</code> value. Use this value in a subsequent <code>DescribeClusters</code> /// request to get more clusters. When you receive a response with no <code>NextToken</code> /// (or an empty or null value), that means there are no more clusters to get. /// </para> /// </summary> public partial class DescribeClustersRequest : AmazonCloudHSMV2Request { private Dictionary<string, List<string>> _filters = new Dictionary<string, List<string>>(); private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filters. /// <para> /// One or more filters to limit the items returned in the response. /// </para> /// /// <para> /// Use the <code>clusterIds</code> filter to return only the specified clusters. Specify /// clusters by their cluster identifier (ID). /// </para> /// /// <para> /// Use the <code>vpcIds</code> filter to return only the clusters in the specified virtual /// private clouds (VPCs). Specify VPCs by their VPC identifier (ID). /// </para> /// /// <para> /// Use the <code>states</code> filter to return only clusters that match the specified /// state. /// </para> /// </summary> public Dictionary<string, List<string>> Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of clusters to return in the response. When there are more clusters /// than the number you specify, the response contains a <code>NextToken</code> value. /// </para> /// </summary> [AWSProperty(Min=1, Max=25)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The <code>NextToken</code> value that you received in the previous response. Use this /// value to get more clusters. /// </para> /// </summary> [AWSProperty(Max=256)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
124
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the DescribeClusters operation. /// </summary> public partial class DescribeClustersResponse : AmazonWebServiceResponse { private List<Cluster> _clusters = new List<Cluster>(); private string _nextToken; /// <summary> /// Gets and sets the property Clusters. /// <para> /// A list of clusters. /// </para> /// </summary> public List<Cluster> Clusters { get { return this._clusters; } set { this._clusters = value; } } // Check to see if Clusters property is set internal bool IsSetClusters() { return this._clusters != null && this._clusters.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// An opaque string that indicates that the response contains only a subset of clusters. /// Use this value in a subsequent <code>DescribeClusters</code> request to get more clusters. /// </para> /// </summary> [AWSProperty(Max=256)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Contains information about the backup that will be copied and created by the <a>CopyBackupToRegion</a> /// operation. /// </summary> public partial class DestinationBackup { private DateTime? _createTimestamp; private string _sourceBackup; private string _sourceCluster; private string _sourceRegion; /// <summary> /// Gets and sets the property CreateTimestamp. /// <para> /// The date and time when both the source backup was created. /// </para> /// </summary> public DateTime CreateTimestamp { get { return this._createTimestamp.GetValueOrDefault(); } set { this._createTimestamp = value; } } // Check to see if CreateTimestamp property is set internal bool IsSetCreateTimestamp() { return this._createTimestamp.HasValue; } /// <summary> /// Gets and sets the property SourceBackup. /// <para> /// The identifier (ID) of the source backup from which the new backup was copied. /// </para> /// </summary> public string SourceBackup { get { return this._sourceBackup; } set { this._sourceBackup = value; } } // Check to see if SourceBackup property is set internal bool IsSetSourceBackup() { return this._sourceBackup != null; } /// <summary> /// Gets and sets the property SourceCluster. /// <para> /// The identifier (ID) of the cluster containing the source backup from which the new /// backup was copied. /// </para> /// </summary> public string SourceCluster { get { return this._sourceCluster; } set { this._sourceCluster = value; } } // Check to see if SourceCluster property is set internal bool IsSetSourceCluster() { return this._sourceCluster != null; } /// <summary> /// Gets and sets the property SourceRegion. /// <para> /// The AWS region that contains the source backup from which the new backup was copied. /// </para> /// </summary> public string SourceRegion { get { return this._sourceRegion; } set { this._sourceRegion = value; } } // Check to see if SourceRegion property is set internal bool IsSetSourceRegion() { return this._sourceRegion != null; } } }
116
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Contains information about a hardware security module (HSM) in an AWS CloudHSM cluster. /// </summary> public partial class Hsm { private string _availabilityZone; private string _clusterId; private string _eniId; private string _eniIp; private string _hsmId; private HsmState _state; private string _stateMessage; private string _subnetId; /// <summary> /// Gets and sets the property AvailabilityZone. /// <para> /// The Availability Zone that contains the HSM. /// </para> /// </summary> public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the cluster that contains the HSM. /// </para> /// </summary> public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } /// <summary> /// Gets and sets the property EniId. /// <para> /// The identifier (ID) of the HSM's elastic network interface (ENI). /// </para> /// </summary> public string EniId { get { return this._eniId; } set { this._eniId = value; } } // Check to see if EniId property is set internal bool IsSetEniId() { return this._eniId != null; } /// <summary> /// Gets and sets the property EniIp. /// <para> /// The IP address of the HSM's elastic network interface (ENI). /// </para> /// </summary> public string EniIp { get { return this._eniIp; } set { this._eniIp = value; } } // Check to see if EniIp property is set internal bool IsSetEniIp() { return this._eniIp != null; } /// <summary> /// Gets and sets the property HsmId. /// <para> /// The HSM's identifier (ID). /// </para> /// </summary> [AWSProperty(Required=true)] public string HsmId { get { return this._hsmId; } set { this._hsmId = value; } } // Check to see if HsmId property is set internal bool IsSetHsmId() { return this._hsmId != null; } /// <summary> /// Gets and sets the property State. /// <para> /// The HSM's state. /// </para> /// </summary> public HsmState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property StateMessage. /// <para> /// A description of the HSM's state. /// </para> /// </summary> public string StateMessage { get { return this._stateMessage; } set { this._stateMessage = value; } } // Check to see if StateMessage property is set internal bool IsSetStateMessage() { return this._stateMessage != null; } /// <summary> /// Gets and sets the property SubnetId. /// <para> /// The subnet that contains the HSM's elastic network interface (ENI). /// </para> /// </summary> public string SubnetId { get { return this._subnetId; } set { this._subnetId = value; } } // Check to see if SubnetId property is set internal bool IsSetSubnetId() { return this._subnetId != null; } } }
191
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the InitializeCluster operation. /// Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your /// issuing certificate authority (CA) and the CA's root certificate. Before you can claim /// a cluster, you must sign the cluster's certificate signing request (CSR) with your /// issuing CA. To get the cluster's CSR, use <a>DescribeClusters</a>. /// </summary> public partial class InitializeClusterRequest : AmazonCloudHSMV2Request { private string _clusterId; private string _signedCert; private string _trustAnchor; /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the cluster that you are claiming. To find the cluster ID, /// use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } /// <summary> /// Gets and sets the property SignedCert. /// <para> /// The cluster certificate issued (signed) by your issuing certificate authority (CA). /// The certificate must be in PEM format and can contain a maximum of 5000 characters. /// </para> /// </summary> [AWSProperty(Required=true, Max=5000)] public string SignedCert { get { return this._signedCert; } set { this._signedCert = value; } } // Check to see if SignedCert property is set internal bool IsSetSignedCert() { return this._signedCert != null; } /// <summary> /// Gets and sets the property TrustAnchor. /// <para> /// The issuing certificate of the issuing certificate authority (CA) that issued (signed) /// the cluster certificate. You must use a self-signed certificate. The certificate used /// to sign the HSM CSR must be directly available, and thus must be the root certificate. /// The certificate must be in PEM format and can contain a maximum of 5000 characters. /// </para> /// </summary> [AWSProperty(Required=true, Max=5000)] public string TrustAnchor { get { return this._trustAnchor; } set { this._trustAnchor = value; } } // Check to see if TrustAnchor property is set internal bool IsSetTrustAnchor() { return this._trustAnchor != null; } } }
107
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the InitializeCluster operation. /// </summary> public partial class InitializeClusterResponse : AmazonWebServiceResponse { private ClusterState _state; private string _stateMessage; /// <summary> /// Gets and sets the property State. /// <para> /// The cluster's state. /// </para> /// </summary> public ClusterState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property StateMessage. /// <para> /// A description of the cluster's state. /// </para> /// </summary> [AWSProperty(Max=300)] public string StateMessage { get { return this._stateMessage; } set { this._stateMessage = value; } } // Check to see if StateMessage property is set internal bool IsSetStateMessage() { return this._stateMessage != null; } } }
77
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the ListTags operation. /// Gets a list of tags for the specified AWS CloudHSM cluster. /// /// /// <para> /// This is a paginated operation, which means that each response might contain only a /// subset of all the tags. When the response contains only a subset of tags, it includes /// a <code>NextToken</code> value. Use this value in a subsequent <code>ListTags</code> /// request to get more tags. When you receive a response with no <code>NextToken</code> /// (or an empty or null value), that means there are no more tags to get. /// </para> /// </summary> public partial class ListTagsRequest : AmazonCloudHSMV2Request { private int? _maxResults; private string _nextToken; private string _resourceId; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of tags to return in the response. When there are more tags than /// the number you specify, the response contains a <code>NextToken</code> value. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The <code>NextToken</code> value that you received in the previous response. Use this /// value to get more tags. /// </para> /// </summary> [AWSProperty(Max=256)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The cluster identifier (ID) for the cluster whose tags you are getting. To find the /// cluster ID, use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } } }
111
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the ListTags operation. /// </summary> public partial class ListTagsResponse : AmazonWebServiceResponse { private string _nextToken; private List<Tag> _tagList = new List<Tag>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// An opaque string that indicates that the response contains only a subset of tags. /// Use this value in a subsequent <code>ListTags</code> request to get more tags. /// </para> /// </summary> [AWSProperty(Max=256)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property TagList. /// <para> /// A list of tags. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<Tag> TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the ModifyBackupAttributes operation. /// Modifies attributes for AWS CloudHSM backup. /// </summary> public partial class ModifyBackupAttributesRequest : AmazonCloudHSMV2Request { private string _backupId; private bool? _neverExpires; /// <summary> /// Gets and sets the property BackupId. /// <para> /// The identifier (ID) of the backup to modify. To find the ID of a backup, use the <a>DescribeBackups</a> /// operation. /// </para> /// </summary> [AWSProperty(Required=true)] public string BackupId { get { return this._backupId; } set { this._backupId = value; } } // Check to see if BackupId property is set internal bool IsSetBackupId() { return this._backupId != null; } /// <summary> /// Gets and sets the property NeverExpires. /// <para> /// Specifies whether the service should exempt a backup from the retention policy for /// the cluster. <code>True</code> exempts a backup from the retention policy. <code>False</code> /// means the service applies the backup retention policy defined at the cluster. /// </para> /// </summary> [AWSProperty(Required=true)] public bool NeverExpires { get { return this._neverExpires.GetValueOrDefault(); } set { this._neverExpires = value; } } // Check to see if NeverExpires property is set internal bool IsSetNeverExpires() { return this._neverExpires.HasValue; } } }
82
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the ModifyBackupAttributes operation. /// </summary> public partial class ModifyBackupAttributesResponse : AmazonWebServiceResponse { private Backup _backup; /// <summary> /// Gets and sets the property Backup. /// </summary> public Backup Backup { get { return this._backup; } set { this._backup = value; } } // Check to see if Backup property is set internal bool IsSetBackup() { return this._backup != null; } } }
54
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the ModifyCluster operation. /// Modifies AWS CloudHSM cluster. /// </summary> public partial class ModifyClusterRequest : AmazonCloudHSMV2Request { private BackupRetentionPolicy _backupRetentionPolicy; private string _clusterId; /// <summary> /// Gets and sets the property BackupRetentionPolicy. /// <para> /// A policy that defines how the service retains backups. /// </para> /// </summary> [AWSProperty(Required=true)] public BackupRetentionPolicy BackupRetentionPolicy { get { return this._backupRetentionPolicy; } set { this._backupRetentionPolicy = value; } } // Check to see if BackupRetentionPolicy property is set internal bool IsSetBackupRetentionPolicy() { return this._backupRetentionPolicy != null; } /// <summary> /// Gets and sets the property ClusterId. /// <para> /// The identifier (ID) of the cluster that you want to modify. To find the cluster ID, /// use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ClusterId { get { return this._clusterId; } set { this._clusterId = value; } } // Check to see if ClusterId property is set internal bool IsSetClusterId() { return this._clusterId != null; } } }
80
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the ModifyCluster operation. /// </summary> public partial class ModifyClusterResponse : AmazonWebServiceResponse { private Cluster _cluster; /// <summary> /// Gets and sets the property Cluster. /// </summary> public Cluster Cluster { get { return this._cluster; } set { this._cluster = value; } } // Check to see if Cluster property is set internal bool IsSetCluster() { return this._cluster != null; } } }
54
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the RestoreBackup operation. /// Restores a specified AWS CloudHSM backup that is in the <code>PENDING_DELETION</code> /// state. For mor information on deleting a backup, see <a>DeleteBackup</a>. /// </summary> public partial class RestoreBackupRequest : AmazonCloudHSMV2Request { private string _backupId; /// <summary> /// Gets and sets the property BackupId. /// <para> /// The ID of the backup to be restored. To find the ID of a backup, use the <a>DescribeBackups</a> /// operation. /// </para> /// </summary> [AWSProperty(Required=true)] public string BackupId { get { return this._backupId; } set { this._backupId = value; } } // Check to see if BackupId property is set internal bool IsSetBackupId() { return this._backupId != null; } } }
61
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the RestoreBackup operation. /// </summary> public partial class RestoreBackupResponse : AmazonWebServiceResponse { private Backup _backup; /// <summary> /// Gets and sets the property Backup. /// <para> /// Information on the <code>Backup</code> object created. /// </para> /// </summary> public Backup Backup { get { return this._backup; } set { this._backup = value; } } // Check to see if Backup property is set internal bool IsSetBackup() { return this._backup != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Contains a tag. A tag is a key-value pair. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// The key of the tag. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value of the tag. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Adds or overwrites one or more tags for the specified AWS CloudHSM cluster. /// </summary> public partial class TagResourceRequest : AmazonCloudHSMV2Request { private string _resourceId; private List<Tag> _tagList = new List<Tag>(); /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The cluster identifier (ID) for the cluster that you are tagging. To find the cluster /// ID, use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property TagList. /// <para> /// A list of one or more tags. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<Tag> TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Removes the specified tag or tags from the specified AWS CloudHSM cluster. /// </summary> public partial class UntagResourceRequest : AmazonCloudHSMV2Request { private string _resourceId; private List<string> _tagKeyList = new List<string>(); /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The cluster identifier (ID) for the cluster whose tags you are removing. To find the /// cluster ID, use <a>DescribeClusters</a>. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property TagKeyList. /// <para> /// A list of one or more tag keys for the tags that you are removing. Specify only the /// tag keys, not the tag values. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<string> TagKeyList { get { return this._tagKeyList; } set { this._tagKeyList = value; } } // Check to see if TagKeyList property is set internal bool IsSetTagKeyList() { return this._tagKeyList != null && this._tagKeyList.Count > 0; } } }
81
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudHSMV2.Model { /// <summary> /// This is the response object from the UntagResource operation. /// </summary> public partial class UntagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// BackupRetentionPolicy Marshaller /// </summary> public class BackupRetentionPolicyMarshaller : IRequestMarshaller<BackupRetentionPolicy, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(BackupRetentionPolicy requestObject, JsonMarshallerContext context) { if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static BackupRetentionPolicyMarshaller Instance = new BackupRetentionPolicyMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BackupRetentionPolicy Object /// </summary> public class BackupRetentionPolicyUnmarshaller : IUnmarshaller<BackupRetentionPolicy, XmlUnmarshallerContext>, IUnmarshaller<BackupRetentionPolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BackupRetentionPolicy IUnmarshaller<BackupRetentionPolicy, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BackupRetentionPolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BackupRetentionPolicy unmarshalledObject = new BackupRetentionPolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BackupRetentionPolicyUnmarshaller _instance = new BackupRetentionPolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BackupRetentionPolicyUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Backup Object /// </summary> public class BackupUnmarshaller : IUnmarshaller<Backup, XmlUnmarshallerContext>, IUnmarshaller<Backup, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Backup IUnmarshaller<Backup, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Backup Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Backup unmarshalledObject = new Backup(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("BackupId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BackupId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BackupState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BackupState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClusterId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ClusterId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CopyTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CopyTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreateTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreateTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeleteTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DeleteTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NeverExpires", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.NeverExpires = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceBackup", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceBackup = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceCluster", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceCluster = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TagList", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); unmarshalledObject.TagList = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BackupUnmarshaller _instance = new BackupUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BackupUnmarshaller Instance { get { return _instance; } } } }
152
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Certificates Object /// </summary> public class CertificatesUnmarshaller : IUnmarshaller<Certificates, XmlUnmarshallerContext>, IUnmarshaller<Certificates, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Certificates IUnmarshaller<Certificates, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Certificates Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Certificates unmarshalledObject = new Certificates(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AwsHardwareCertificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsHardwareCertificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClusterCertificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ClusterCertificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClusterCsr", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ClusterCsr = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HsmCertificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HsmCertificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ManufacturerHardwareCertificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ManufacturerHardwareCertificate = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CertificatesUnmarshaller _instance = new CertificatesUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CertificatesUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudHsmAccessDeniedException Object /// </summary> public class CloudHsmAccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmAccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudHsmAccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CloudHsmAccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CloudHsmAccessDeniedException unmarshalledObject = new CloudHsmAccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CloudHsmAccessDeniedExceptionUnmarshaller _instance = new CloudHsmAccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudHsmAccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudHsmInternalFailureException Object /// </summary> public class CloudHsmInternalFailureExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmInternalFailureException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudHsmInternalFailureException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CloudHsmInternalFailureException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CloudHsmInternalFailureException unmarshalledObject = new CloudHsmInternalFailureException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CloudHsmInternalFailureExceptionUnmarshaller _instance = new CloudHsmInternalFailureExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudHsmInternalFailureExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudHsmInvalidRequestException Object /// </summary> public class CloudHsmInvalidRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmInvalidRequestException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudHsmInvalidRequestException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CloudHsmInvalidRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CloudHsmInvalidRequestException unmarshalledObject = new CloudHsmInvalidRequestException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CloudHsmInvalidRequestExceptionUnmarshaller _instance = new CloudHsmInvalidRequestExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudHsmInvalidRequestExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudHsmResourceNotFoundException Object /// </summary> public class CloudHsmResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudHsmResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CloudHsmResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CloudHsmResourceNotFoundException unmarshalledObject = new CloudHsmResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CloudHsmResourceNotFoundExceptionUnmarshaller _instance = new CloudHsmResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudHsmResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudHsmServiceException Object /// </summary> public class CloudHsmServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmServiceException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudHsmServiceException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CloudHsmServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CloudHsmServiceException unmarshalledObject = new CloudHsmServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CloudHsmServiceExceptionUnmarshaller _instance = new CloudHsmServiceExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudHsmServiceExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudHsmTagException Object /// </summary> public class CloudHsmTagExceptionUnmarshaller : IErrorResponseUnmarshaller<CloudHsmTagException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudHsmTagException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public CloudHsmTagException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); CloudHsmTagException unmarshalledObject = new CloudHsmTagException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static CloudHsmTagExceptionUnmarshaller _instance = new CloudHsmTagExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudHsmTagExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Cluster Object /// </summary> public class ClusterUnmarshaller : IUnmarshaller<Cluster, XmlUnmarshallerContext>, IUnmarshaller<Cluster, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Cluster IUnmarshaller<Cluster, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Cluster Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Cluster unmarshalledObject = new Cluster(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("BackupPolicy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BackupPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BackupRetentionPolicy", targetDepth)) { var unmarshaller = BackupRetentionPolicyUnmarshaller.Instance; unmarshalledObject.BackupRetentionPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Certificates", targetDepth)) { var unmarshaller = CertificatesUnmarshaller.Instance; unmarshalledObject.Certificates = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClusterId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ClusterId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreateTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreateTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Hsms", targetDepth)) { var unmarshaller = new ListUnmarshaller<Hsm, HsmUnmarshaller>(HsmUnmarshaller.Instance); unmarshalledObject.Hsms = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HsmType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HsmType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PreCoPassword", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PreCoPassword = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SecurityGroup", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SecurityGroup = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceBackupId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceBackupId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StateMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StateMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SubnetMapping", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.SubnetMapping = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TagList", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); unmarshalledObject.TagList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VpcId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VpcId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ClusterUnmarshaller _instance = new ClusterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ClusterUnmarshaller Instance { get { return _instance; } } } }
176
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// CopyBackupToRegion Request Marshaller /// </summary> public class CopyBackupToRegionRequestMarshaller : IMarshaller<IRequest, CopyBackupToRegionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CopyBackupToRegionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CopyBackupToRegionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.CopyBackupToRegion"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBackupId()) { context.Writer.WritePropertyName("BackupId"); context.Writer.Write(publicRequest.BackupId); } if(publicRequest.IsSetDestinationRegion()) { context.Writer.WritePropertyName("DestinationRegion"); context.Writer.Write(publicRequest.DestinationRegion); } if(publicRequest.IsSetTagList()) { context.Writer.WritePropertyName("TagList"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagListListValue in publicRequest.TagList) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagListListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CopyBackupToRegionRequestMarshaller _instance = new CopyBackupToRegionRequestMarshaller(); internal static CopyBackupToRegionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CopyBackupToRegionRequestMarshaller Instance { get { return _instance; } } } }
125
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CopyBackupToRegion operation /// </summary> public class CopyBackupToRegionResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CopyBackupToRegionResponse response = new CopyBackupToRegionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DestinationBackup", targetDepth)) { var unmarshaller = DestinationBackupUnmarshaller.Instance; response.DestinationBackup = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmTagException")) { return CloudHsmTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CopyBackupToRegionResponseUnmarshaller _instance = new CopyBackupToRegionResponseUnmarshaller(); internal static CopyBackupToRegionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CopyBackupToRegionResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// CreateCluster Request Marshaller /// </summary> public class CreateClusterRequestMarshaller : IMarshaller<IRequest, CreateClusterRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateClusterRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateClusterRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.CreateCluster"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBackupRetentionPolicy()) { context.Writer.WritePropertyName("BackupRetentionPolicy"); context.Writer.WriteObjectStart(); var marshaller = BackupRetentionPolicyMarshaller.Instance; marshaller.Marshall(publicRequest.BackupRetentionPolicy, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetHsmType()) { context.Writer.WritePropertyName("HsmType"); context.Writer.Write(publicRequest.HsmType); } if(publicRequest.IsSetSourceBackupId()) { context.Writer.WritePropertyName("SourceBackupId"); context.Writer.Write(publicRequest.SourceBackupId); } if(publicRequest.IsSetSubnetIds()) { context.Writer.WritePropertyName("SubnetIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestSubnetIdsListValue in publicRequest.SubnetIds) { context.Writer.Write(publicRequestSubnetIdsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTagList()) { context.Writer.WritePropertyName("TagList"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagListListValue in publicRequest.TagList) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagListListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateClusterRequestMarshaller _instance = new CreateClusterRequestMarshaller(); internal static CreateClusterRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateClusterRequestMarshaller Instance { get { return _instance; } } } }
147
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateCluster operation /// </summary> public class CreateClusterResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateClusterResponse response = new CreateClusterResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Cluster", targetDepth)) { var unmarshaller = ClusterUnmarshaller.Instance; response.Cluster = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmTagException")) { return CloudHsmTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateClusterResponseUnmarshaller _instance = new CreateClusterResponseUnmarshaller(); internal static CreateClusterResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateClusterResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// CreateHsm Request Marshaller /// </summary> public class CreateHsmRequestMarshaller : IMarshaller<IRequest, CreateHsmRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateHsmRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateHsmRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.CreateHsm"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAvailabilityZone()) { context.Writer.WritePropertyName("AvailabilityZone"); context.Writer.Write(publicRequest.AvailabilityZone); } if(publicRequest.IsSetClusterId()) { context.Writer.WritePropertyName("ClusterId"); context.Writer.Write(publicRequest.ClusterId); } if(publicRequest.IsSetIpAddress()) { context.Writer.WritePropertyName("IpAddress"); context.Writer.Write(publicRequest.IpAddress); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateHsmRequestMarshaller _instance = new CreateHsmRequestMarshaller(); internal static CreateHsmRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateHsmRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateHsm operation /// </summary> public class CreateHsmResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateHsmResponse response = new CreateHsmResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Hsm", targetDepth)) { var unmarshaller = HsmUnmarshaller.Instance; response.Hsm = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateHsmResponseUnmarshaller _instance = new CreateHsmResponseUnmarshaller(); internal static CreateHsmResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateHsmResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// DeleteBackup Request Marshaller /// </summary> public class DeleteBackupRequestMarshaller : IMarshaller<IRequest, DeleteBackupRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteBackupRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteBackupRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.DeleteBackup"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBackupId()) { context.Writer.WritePropertyName("BackupId"); context.Writer.Write(publicRequest.BackupId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteBackupRequestMarshaller _instance = new DeleteBackupRequestMarshaller(); internal static DeleteBackupRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteBackupRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteBackup operation /// </summary> public class DeleteBackupResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteBackupResponse response = new DeleteBackupResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Backup", targetDepth)) { var unmarshaller = BackupUnmarshaller.Instance; response.Backup = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteBackupResponseUnmarshaller _instance = new DeleteBackupResponseUnmarshaller(); internal static DeleteBackupResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteBackupResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// DeleteCluster Request Marshaller /// </summary> public class DeleteClusterRequestMarshaller : IMarshaller<IRequest, DeleteClusterRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteClusterRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteClusterRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.DeleteCluster"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClusterId()) { context.Writer.WritePropertyName("ClusterId"); context.Writer.Write(publicRequest.ClusterId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteClusterRequestMarshaller _instance = new DeleteClusterRequestMarshaller(); internal static DeleteClusterRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteClusterRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteCluster operation /// </summary> public class DeleteClusterResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteClusterResponse response = new DeleteClusterResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Cluster", targetDepth)) { var unmarshaller = ClusterUnmarshaller.Instance; response.Cluster = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmTagException")) { return CloudHsmTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteClusterResponseUnmarshaller _instance = new DeleteClusterResponseUnmarshaller(); internal static DeleteClusterResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteClusterResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// DeleteHsm Request Marshaller /// </summary> public class DeleteHsmRequestMarshaller : IMarshaller<IRequest, DeleteHsmRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteHsmRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteHsmRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.DeleteHsm"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClusterId()) { context.Writer.WritePropertyName("ClusterId"); context.Writer.Write(publicRequest.ClusterId); } if(publicRequest.IsSetEniId()) { context.Writer.WritePropertyName("EniId"); context.Writer.Write(publicRequest.EniId); } if(publicRequest.IsSetEniIp()) { context.Writer.WritePropertyName("EniIp"); context.Writer.Write(publicRequest.EniIp); } if(publicRequest.IsSetHsmId()) { context.Writer.WritePropertyName("HsmId"); context.Writer.Write(publicRequest.HsmId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteHsmRequestMarshaller _instance = new DeleteHsmRequestMarshaller(); internal static DeleteHsmRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteHsmRequestMarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteHsm operation /// </summary> public class DeleteHsmResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteHsmResponse response = new DeleteHsmResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HsmId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HsmId = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteHsmResponseUnmarshaller _instance = new DeleteHsmResponseUnmarshaller(); internal static DeleteHsmResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteHsmResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// DescribeBackups Request Marshaller /// </summary> public class DescribeBackupsRequestMarshaller : IMarshaller<IRequest, DescribeBackupsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DescribeBackupsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeBackupsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudHSMV2"); string target = "BaldrApiService.DescribeBackups"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-04-28"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilters()) { context.Writer.WritePropertyName("Filters"); context.Writer.WriteObjectStart(); foreach (var publicRequestFiltersKvp in publicRequest.Filters) { context.Writer.WritePropertyName(publicRequestFiltersKvp.Key); var publicRequestFiltersValue = publicRequestFiltersKvp.Value; context.Writer.WriteArrayStart(); foreach(var publicRequestFiltersValueListValue in publicRequestFiltersValue) { context.Writer.Write(publicRequestFiltersValueListValue); } context.Writer.WriteArrayEnd(); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetSortAscending()) { context.Writer.WritePropertyName("SortAscending"); context.Writer.Write(publicRequest.SortAscending); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeBackupsRequestMarshaller _instance = new DescribeBackupsRequestMarshaller(); internal static DescribeBackupsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeBackupsRequestMarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * 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 cloudhsmv2-2017-04-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudHSMV2.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudHSMV2.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeBackups operation /// </summary> public class DescribeBackupsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeBackupsResponse response = new DescribeBackupsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Backups", targetDepth)) { var unmarshaller = new ListUnmarshaller<Backup, BackupUnmarshaller>(BackupUnmarshaller.Instance); response.Backups = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmAccessDeniedException")) { return CloudHsmAccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInternalFailureException")) { return CloudHsmInternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmInvalidRequestException")) { return CloudHsmInvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmResourceNotFoundException")) { return CloudHsmResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmServiceException")) { return CloudHsmServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("CloudHsmTagException")) { return CloudHsmTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudHSMV2Exception(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeBackupsResponseUnmarshaller _instance = new DescribeBackupsResponseUnmarshaller(); internal static DescribeBackupsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeBackupsResponseUnmarshaller Instance { get { return _instance; } } } }
136