public void RequestCertificateMarshallTest() { var request = InstantiateClassGenerator.Execute <RequestCertificateRequest>(); var marshaller = new RequestCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <RequestCertificateRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("RequestCertificate").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = RequestCertificateResponseUnmarshaller.Instance.Unmarshall(context) as RequestCertificateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal virtual RequestCertificateResponse RequestCertificate(RequestCertificateRequest request) { var marshaller = new RequestCertificateRequestMarshaller(); var unmarshaller = RequestCertificateResponseUnmarshaller.Instance; return(Invoke <RequestCertificateRequest, RequestCertificateResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RequestCertificate operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual Task <RequestCertificateResponse> RequestCertificateAsync(RequestCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RequestCertificateRequestMarshaller(); var unmarshaller = RequestCertificateResponseUnmarshaller.Instance; return(InvokeAsync <RequestCertificateRequest, RequestCertificateResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RequestCertificate operation on AmazonCertificateManagerClient.</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 EndRequestCertificate /// operation.</returns> public IAsyncResult BeginRequestCertificate(RequestCertificateRequest request, AsyncCallback callback, object state) { var marshaller = new RequestCertificateRequestMarshaller(); var unmarshaller = RequestCertificateResponseUnmarshaller.Instance; return(BeginInvoke <RequestCertificateRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RequestCertificate operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<RequestCertificateResponse> RequestCertificateAsync(RequestCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RequestCertificateRequestMarshaller(); var unmarshaller = RequestCertificateResponseUnmarshaller.Instance; return InvokeAsync<RequestCertificateRequest,RequestCertificateResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Requests an ACM certificate for use with other AWS services. To request an ACM certificate, /// you must specify the fully qualified domain name (FQDN) for your site. You can also /// specify additional FQDNs if users can reach your site by using other names. For each /// domain name you specify, email is sent to the domain owner to request approval to /// issue the certificate. After receiving approval from the domain owner, the ACM certificate /// is issued. For more information, see the <a href="http://docs.aws.amazon.com/acm/latest/userguide/overview.html"> /// AWS Certificate Manager User Guide </a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have the IAM permissions necessary to perform the requested operation. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM limit has been exceeded. For example, you may have input more domains than /// are allowed or you've requested too many certificates for your account. See the exception /// message returned by ACM to determine which limit you have violated. For more information /// about ACM limits, see the <a href="http://docs.amazon.com/acm/latest/userguide/limits.html">Limits</a> /// topic. /// </exception> public RequestCertificateResponse RequestCertificate(RequestCertificateRequest request) { var marshaller = new RequestCertificateRequestMarshaller(); var unmarshaller = RequestCertificateResponseUnmarshaller.Instance; return Invoke<RequestCertificateRequest,RequestCertificateResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RequestCertificate operation on AmazonCertificateManagerClient.</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 EndRequestCertificate /// operation.</returns> public IAsyncResult BeginRequestCertificate(RequestCertificateRequest request, AsyncCallback callback, object state) { var marshaller = new RequestCertificateRequestMarshaller(); var unmarshaller = RequestCertificateResponseUnmarshaller.Instance; return BeginInvoke<RequestCertificateRequest>(request, marshaller, unmarshaller, callback, state); }
public void RequestCertificateMarshallTest() { var request = InstantiateClassGenerator.Execute<RequestCertificateRequest>(); var marshaller = new RequestCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<RequestCertificateRequest>(request,jsonRequest); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("RequestCertificate").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = RequestCertificateResponseUnmarshaller.Instance.Unmarshall(context) as RequestCertificateResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }