// Returns a listing of all invitations for the current AWS account.
Returns a listing of all invitations for the current AWS account.
// Returns a listing of all invitations for the current AWS account .
func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInput, optFns ...func(*Options)) (*ListInvitationsOutput, error) {
	if params == nil {
		params = &ListInvitationsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListInvitations", params, optFns, addOperationListInvitationsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListInvitationsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListInvitations ( ctx context . Context , params * ListInvitationsInput , optFns ... func ( * Options ) ) ( * ListInvitationsOutput , error ) { if params == nil { params = & ListInvitationsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListInvitationsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListInvitationsOutput ) out . ResultMetadata = metadata return out , nil }
Returns a listing of all invitations for the current AWS account.
Returns a listing of all invitations for the current AWS account .