/// <summary> /// Sends a request to invite the specified AWS accounts to be member accounts in the /// behavior graph. This operation can only be called by the master account for a behavior /// graph. /// /// /// <para> /// <code>CreateMembers</code> verifies the accounts and then sends invitations to the /// verified accounts. /// </para> /// /// <para> /// The request provides the behavior graph ARN and the list of accounts to invite. /// </para> /// /// <para> /// The response separates the requested accounts into two lists: /// </para> /// <ul> <li> /// <para> /// The accounts that <code>CreateMembers</code> was able to start the verification for. /// This list includes member accounts that are being verified, that have passed verification /// and are being sent an invitation, and that have failed verification. /// </para> /// </li> <li> /// <para> /// The accounts that <code>CreateMembers</code> was unable to process. This list includes /// accounts that were already invited to be member accounts in the behavior graph. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateMembers 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 CreateMembers service method, as returned by Detective.</returns> /// <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.ServiceQuotaExceededException"> /// This request cannot be completed for one of the following reasons. /// /// <ul> <li> /// <para> /// The request would cause the number of member accounts in the behavior graph to exceed /// the maximum allowed. A behavior graph cannot have more than 1000 member accounts. /// </para> /// </li> <li> /// <para> /// The request would cause the data rate for the behavior graph to exceed the maximum /// allowed. /// </para> /// </li> <li> /// <para> /// Detective is unable to verify the data rate for the member account. This is usually /// because the member account is not enrolled in Amazon GuardDuty. /// </para> /// </li> </ul> /// </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/CreateMembers">REST API Reference for CreateMembers Operation</seealso> public virtual Task <CreateMembersResponse> CreateMembersAsync(CreateMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance; return(InvokeAsync <CreateMembersResponse>(request, options, cancellationToken)); }
internal virtual CreateMembersResponse CreateMembers(CreateMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance; return(Invoke <CreateMembersResponse>(request, options)); }