/// <summary> /// Retrieves the specified alternate contact attached to 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 GetAlternateContact service method.</param> /// /// <returns>The response from the GetAlternateContact 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/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso> public virtual GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance; return(Invoke <GetAlternateContactResponse>(request, options)); }
/// <summary> /// Retrieves the specified alternate contact attached to 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 GetAlternateContact service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetAlternateContact 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/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso> public virtual Task <GetAlternateContactResponse> GetAlternateContactAsync(GetAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance; return(InvokeAsync <GetAlternateContactResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetAlternateContact operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAlternateContact 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 EndGetAlternateContact /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso> public virtual IAsyncResult BeginGetAlternateContact(GetAlternateContactRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }