/// <summary> /// Initiates the asynchronous execution of the DeleteServerCertificate operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteServerCertificate 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<DeleteServerCertificateResponse> DeleteServerCertificateAsync(DeleteServerCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance; return InvokeAsync<DeleteServerCertificateRequest,DeleteServerCertificateResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDeleteServerCertificate(DeleteServerCertificateRequest deleteServerCertificateRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteServerCertificateRequestMarshaller().Marshall(deleteServerCertificateRequest); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal DeleteServerCertificateResponse DeleteServerCertificate(DeleteServerCertificateRequest request) { var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance; return Invoke<DeleteServerCertificateRequest,DeleteServerCertificateResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteServerCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteServerCertificate operation on AmazonIdentityManagementServiceClient.</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 EndDeleteServerCertificate /// operation.</returns> public IAsyncResult BeginDeleteServerCertificate(DeleteServerCertificateRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance; return BeginInvoke<DeleteServerCertificateRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteServerCertificateMarshallTest() { var operation = service_model.FindOperation("DeleteServerCertificate"); var request = InstantiateClassGenerator.Execute<DeleteServerCertificateRequest>(); var marshaller = new DeleteServerCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para>Deletes the specified server certificate.</para> /// <para><b>IMPORTANT:</b> You should understand the implications of /// deleting a server certificate. If the server certificate is used in /// other AWS services, it is recommended that you remove all the /// references before using this API to delete the server certificate. /// </para> /// </summary> /// /// <param name="deleteServerCertificateRequest">Container for the /// necessary parameters to execute the DeleteServerCertificate service /// method on AmazonIdentityManagementService.</param> /// /// <exception cref="NoSuchEntityException"/> /// <exception cref="DeleteConflictException"/> public DeleteServerCertificateResponse DeleteServerCertificate(DeleteServerCertificateRequest deleteServerCertificateRequest) { IRequest<DeleteServerCertificateRequest> request = new DeleteServerCertificateRequestMarshaller().Marshall(deleteServerCertificateRequest); DeleteServerCertificateResponse response = Invoke<DeleteServerCertificateRequest, DeleteServerCertificateResponse> (request, this.signer, DeleteServerCertificateResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteServerCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteServerCertificate operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">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> public void DeleteServerCertificateAsync(DeleteServerCertificateRequest request, AmazonServiceCallback<DeleteServerCertificateRequest, DeleteServerCertificateResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DeleteServerCertificateRequest,DeleteServerCertificateResponse> responseObject = new AmazonServiceResult<DeleteServerCertificateRequest,DeleteServerCertificateResponse>((DeleteServerCertificateRequest)req, (DeleteServerCertificateResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DeleteServerCertificateRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the DeleteServerCertificate operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.DeleteServerCertificate"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteServerCertificate 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 async Task<DeleteServerCertificateResponse> DeleteServerCertificateAsync(DeleteServerCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteServerCertificateRequest, DeleteServerCertificateResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Deletes the specified server certificate.</para> <para><b>IMPORTANT:</b>If you are using a server certificate with Elastic Load /// Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of /// bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend /// that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more /// information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.</para> /// </summary> /// /// <param name="deleteServerCertificateRequest">Container for the necessary parameters to execute the DeleteServerCertificate service method on /// AmazonIdentityManagementService.</param> /// /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> /// <exception cref="T:Amazon.IdentityManagement.Model.DeleteConflictException" /> /// <exception cref="T:Amazon.IdentityManagement.Model.LimitExceededException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteServerCertificateResponse> DeleteServerCertificateAsync(DeleteServerCertificateRequest deleteServerCertificateRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteServerCertificateRequest, DeleteServerCertificateResponse>(deleteServerCertificateRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeDeleteServerCertificate(DeleteServerCertificateRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteServerCertificateRequestMarshaller(); var unmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }