/// <summary> /// Deletes the specified alternate contact from an Amazon Web Services account. /// /// /// <para> /// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access /// or updating the alternate contacts</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param> /// /// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns> /// <exception cref="Amazon.Account.Model.AccessDeniedException"> /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// </exception> /// <exception cref="Amazon.Account.Model.InternalServerException"> /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// </exception> /// <exception cref="Amazon.Account.Model.ResourceNotFoundException"> /// The operation failed because it specified a resource that can't be found. /// </exception> /// <exception cref="Amazon.Account.Model.TooManyRequestsException"> /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// </exception> /// <exception cref="Amazon.Account.Model.ValidationException"> /// The operation failed because one of the input parameters was invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso> public virtual DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance; return(Invoke <DeleteAlternateContactResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteAlternateContact operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact operation on AmazonAccountClient.</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 EndDeleteAlternateContact /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso> public virtual IAsyncResult BeginDeleteAlternateContact(DeleteAlternateContactRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }