internal virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance; return(Invoke <RejectInvitationResponse>(request, options)); }
/// <summary> /// Amazon Detective is currently in preview. /// /// /// <para> /// Rejects an invitation to contribute the account data to a behavior graph. This operation /// must be called by a member account that has the <code>INVITED</code> status. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RejectInvitation 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 RejectInvitation service method, as returned by Detective.</returns> /// <exception cref="Amazon.Detective.Model.ConflictException"> /// The request attempted an invalid action. /// </exception> /// <exception cref="Amazon.Detective.Model.InternalServerException"> /// The request was valid but failed because of a problem with the service. /// </exception> /// <exception cref="Amazon.Detective.Model.ResourceNotFoundException"> /// The request refers to a nonexistent resource. /// </exception> /// <exception cref="Amazon.Detective.Model.ValidationException"> /// The request parameters are invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/RejectInvitation">REST API Reference for RejectInvitation Operation</seealso> public virtual Task <RejectInvitationResponse> RejectInvitationAsync(RejectInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance; return(InvokeAsync <RejectInvitationResponse>(request, options, cancellationToken)); }