/// <summary> /// Initiates the asynchronous execution of the DeleteSigningCertificate operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSigningCertificate 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<DeleteSigningCertificateResponse> DeleteSigningCertificateAsync(DeleteSigningCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.Instance; return InvokeAsync<DeleteSigningCertificateRequest,DeleteSigningCertificateResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDeleteSigningCertificate(DeleteSigningCertificateRequest deleteSigningCertificateRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteSigningCertificateRequestMarshaller().Marshall(deleteSigningCertificateRequest); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal DeleteSigningCertificateResponse DeleteSigningCertificate(DeleteSigningCertificateRequest request) { var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.Instance; return Invoke<DeleteSigningCertificateRequest,DeleteSigningCertificateResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteSigningCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSigningCertificate 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 EndDeleteSigningCertificate /// operation.</returns> public IAsyncResult BeginDeleteSigningCertificate(DeleteSigningCertificateRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.Instance; return BeginInvoke<DeleteSigningCertificateRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteSigningCertificateMarshallTest() { var operation = service_model.FindOperation("DeleteSigningCertificate"); var request = InstantiateClassGenerator.Execute<DeleteSigningCertificateRequest>(); var marshaller = new DeleteSigningCertificateRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para>Deletes the specified signing certificate associated with the /// specified User.</para> <para>If you do not specify a User name, IAM /// determines the User name implicitly based on the AWS Access Key ID /// signing the request. Because this action works for access keys under /// the AWS Account, you can use this API to manage root credentials even /// if the AWS Account has no associated Users.</para> /// </summary> /// /// <param name="deleteSigningCertificateRequest">Container for the /// necessary parameters to execute the DeleteSigningCertificate service /// method on AmazonIdentityManagementService.</param> /// /// <exception cref="NoSuchEntityException"/> public DeleteSigningCertificateResponse DeleteSigningCertificate(DeleteSigningCertificateRequest deleteSigningCertificateRequest) { IRequest<DeleteSigningCertificateRequest> request = new DeleteSigningCertificateRequestMarshaller().Marshall(deleteSigningCertificateRequest); DeleteSigningCertificateResponse response = Invoke<DeleteSigningCertificateRequest, DeleteSigningCertificateResponse> (request, this.signer, DeleteSigningCertificateResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteSigningCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSigningCertificate 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 DeleteSigningCertificateAsync(DeleteSigningCertificateRequest request, AmazonServiceCallback<DeleteSigningCertificateRequest, DeleteSigningCertificateResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DeleteSigningCertificateRequest,DeleteSigningCertificateResponse> responseObject = new AmazonServiceResult<DeleteSigningCertificateRequest,DeleteSigningCertificateResponse>((DeleteSigningCertificateRequest)req, (DeleteSigningCertificateResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DeleteSigningCertificateRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the DeleteSigningCertificate operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.DeleteSigningCertificate"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteSigningCertificate 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<DeleteSigningCertificateResponse> DeleteSigningCertificateAsync(DeleteSigningCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteSigningCertificateRequest, DeleteSigningCertificateResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Deletes the specified signing certificate associated with the specified user.</para> <para>If you do not specify a user name, IAM /// determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the /// AWS account, you can use this API to manage root credentials even if the AWS account has no associated users.</para> /// </summary> /// /// <param name="deleteSigningCertificateRequest">Container for the necessary parameters to execute the DeleteSigningCertificate service method /// on AmazonIdentityManagementService.</param> /// /// <exception cref="T:Amazon.IdentityManagement.Model.NoSuchEntityException" /> /// <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<DeleteSigningCertificateResponse> DeleteSigningCertificateAsync(DeleteSigningCertificateRequest deleteSigningCertificateRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteSigningCertificateRequest, DeleteSigningCertificateResponse>(deleteSigningCertificateRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeDeleteSigningCertificate(DeleteSigningCertificateRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteSigningCertificateRequestMarshaller(); var unmarshaller = DeleteSigningCertificateResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }