/// <summary> /// Initiates the asynchronous execution of the DeleteAccountAlias operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAccountAlias 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<DeleteAccountAliasResponse> DeleteAccountAliasAsync(DeleteAccountAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.Instance; return InvokeAsync<DeleteAccountAliasRequest,DeleteAccountAliasResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDeleteAccountAlias(DeleteAccountAliasRequest deleteAccountAliasRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteAccountAliasRequestMarshaller().Marshall(deleteAccountAliasRequest); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
internal DeleteAccountAliasResponse DeleteAccountAlias(DeleteAccountAliasRequest request) { var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.Instance; return Invoke<DeleteAccountAliasRequest,DeleteAccountAliasResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAccountAlias operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAccountAlias 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 EndDeleteAccountAlias /// operation.</returns> public IAsyncResult BeginDeleteAccountAlias(DeleteAccountAliasRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.Instance; return BeginInvoke<DeleteAccountAliasRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteAccountAliasMarshallTest() { var operation = service_model.FindOperation("DeleteAccountAlias"); var request = InstantiateClassGenerator.Execute<DeleteAccountAliasRequest>(); var marshaller = new DeleteAccountAliasRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAccountAlias operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAccountAlias 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 DeleteAccountAliasAsync(DeleteAccountAliasRequest request, AmazonServiceCallback<DeleteAccountAliasRequest, DeleteAccountAliasResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DeleteAccountAliasRequest,DeleteAccountAliasResponse> responseObject = new AmazonServiceResult<DeleteAccountAliasRequest,DeleteAccountAliasResponse>((DeleteAccountAliasRequest)req, (DeleteAccountAliasResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DeleteAccountAliasRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAccountAlias operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService.DeleteAccountAlias"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAccountAlias 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<DeleteAccountAliasResponse> DeleteAccountAliasAsync(DeleteAccountAliasRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteAccountAliasRequest, DeleteAccountAliasResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para>Deletes the specified AWS account alias. For information about using an AWS account alias, see <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html">Using an Alias for Your AWS Account ID</a> in <i>Using AWS /// Identity and Access Management</i> .</para> /// </summary> /// /// <param name="deleteAccountAliasRequest">Container for the necessary parameters to execute the DeleteAccountAlias 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<DeleteAccountAliasResponse> DeleteAccountAliasAsync(DeleteAccountAliasRequest deleteAccountAliasRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteAccountAliasRequest, DeleteAccountAliasResponse>(deleteAccountAliasRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeDeleteAccountAlias(DeleteAccountAliasRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteAccountAliasRequestMarshaller(); var unmarshaller = DeleteAccountAliasResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// <para>Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID /// in <i>Using AWS Identity and Access Management</i> .</para> /// </summary> /// /// <param name="deleteAccountAliasRequest">Container for the necessary parameters to execute the DeleteAccountAlias service method on /// AmazonIdentityManagementService.</param> /// /// <exception cref="NoSuchEntityException"/> public DeleteAccountAliasResponse DeleteAccountAlias(DeleteAccountAliasRequest deleteAccountAliasRequest) { IRequest<DeleteAccountAliasRequest> request = new DeleteAccountAliasRequestMarshaller().Marshall(deleteAccountAliasRequest); DeleteAccountAliasResponse response = Invoke<DeleteAccountAliasRequest, DeleteAccountAliasResponse> (request, this.signer, DeleteAccountAliasResponseUnmarshaller.GetInstance()); return response; }